def test_enable_apt_run(self): apt_run = AptRun() apt_run.set_folder(AptRunTests.TEST_FOLDER) apt_run.enable() result = apt_run.is_enable() self.assertTrue(result)
def test_disable_apt_run(self): apt_run = AptRun() apt_run.set_folder(AptRunTests.TEST_FOLDER) os.makedirs(AptRunTests.TEST_FOLDER) apt_run.disable() result = apt_run.is_enable() self.assertFalse(result)