Example #1
0
 def test(self):
     tId = 123
     bSynchronous = True
     result = self.sc._handler_terminate(tId, bSynchronous)
     assert isinstance(result, iApiTransportResponse)
     assert eStateControlResult.isValid(result.response())
     #    Long enough to shutdown the ExecutionOrganiser:
     time.sleep(20)
     assert not ExecutionOrganiser.hasInstance()
Example #2
0
 def testNoArgs(self):
     tId = 123
     bSynchronous = True
     result = self.sc._handler_run(tId, bSynchronous)
     assert isinstance(result, iApiTransportResponse)
     assert eStateControlResult.isValid(result.response())