def testSetValidIpc(self): api = Tas(ns=self.rootNs) api.ipc = self.ipc assert api.ipc == self.ipc # Now check all sub-apis: for _api in api._apis: assert _api.ipc == self.ipc
def testSetInvalidIpc(self): api = Tas(ns=self.rootNs) try: api.ipc = object() except ApiParamError, e: assert e.item
def testNs(self): api = Tas(ns=self.rootNs, ipc=self.ipc) ns = api._getNamespace() assert ns == self.eNs, "Got: %(NS)s" % {"NS":ns}