import unittest from scripts import local_webcam as webcam class LocalWebcamTests(unittest.TestCase): def test_webcam_does_not_bootstrap_full_service_manager(self): source = webcam.SCRIPT.read_text(encoding='utf-8') self.assertNotIn('get_service_manager().start()', source) self.assertNotIn('shell=True', source) self.assertNotIn('ServiceLeaderLock()', source) self.assertNotIn("mediaStartPath", source) self.assertNotIn("subprocess.Popen([str(exe)", source)