Ejemplo n.º 1
0
 def testStats(self):
     #    FIXME: Implement once we know how Stats is implemented.
     tests = Stats(ns="me")
     tId = 123
     bSynchronous = True
     result = tests._handler_query(tId, bSynchronous)
     assert isinstance(result, iApiTransportResponse)
     response = result.response()
     assert isinstance(response, iStatsResult)
Ejemplo n.º 2
0
 def testNs(self):
     tests = Stats(ns="me")
     eNs = "me.stats".lower()
     assert tests._getNamespace() == eNs, "Got: %(NS)s" % {"NS":eNs}