示例#1
0
 def setUp(self):
     sys.argv = sys.argv[:1]
     path = "config/ipc"
     ConfigurationManager(cwd=path)
     SignalExchangeHub()
     ExecutionOrganiser().bindInterface()
     self.c = Configuration("me")
示例#2
0
class TestConfigure(unittest.TestCase):
    def setUp(self):
        sys.argv = sys.argv[:1]
        path = "config/ipc"
        ConfigurationManager(cwd=path)
        SignalExchangeHub()
        ExecutionOrganiser().bindInterface()
        self.c = Configuration("me")
    def tearDown(self):
        ExecutionOrganiser()._stageController._STAGES_TIMEOUT = 1
        ExecutionOrganiser.destroySingleton()
    def tXXXestWithInvalidArgs(self):
        tId = 123
        bSynchronous = True
        args = [1, 2, 3]
        try:
            self.c._handler_configure(tId, bSynchronous, args)
        except ApiParamError, e:
            assert e.item == args
            assert dict in e.allowedTypes
            assert len(e.allowedTypes) == 1
        else: