예제 #1
0
class TestPauseAtEnd(unittest.TestCase):
    def setUp(self):
        sys.argv = sys.argv[:1]
        path = "config/ipc"
        ConfigurationManager(cwd=path)
        SignalExchangeHub()
        eo = ExecutionOrganiser()
        eo.bindInterface()
        eo.createProcess()
        self.sc = StateControl("me")
    def tearDown(self):
        ExecutionOrganiser.destroySingleton()
    def testWithArgs(self):
        tId = 123
        bSynchronous = True
        try:
            self.sc._handler_pauseAtEnd(tId, bSynchronous, None)
        except TypeError, _e:
            assert True
        else: