def test_stop_ioc_on_not_allowed_to_stop(self): ic = IocControl("", MockProcServWrapper()) ic.start_ioc(IOCS_NOT_TO_STOP[0]) ic.stop_ioc(IOCS_NOT_TO_STOP[0]) self.assertEqual(ic.get_ioc_status(IOCS_NOT_TO_STOP[0]), "RUNNING")
def test_stop_ioc_and_get_ioc_status(self): ic = IocControl("", MockProcServWrapper()) ic.start_ioc("TESTIOC") ic.stop_ioc("TESTIOC") self.assertEqual(ic.get_ioc_status("TESTIOC"), "SHUTDOWN")