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)
def testNs(self): tests = Stats(ns="me") eNs = "me.stats".lower() assert tests._getNamespace() == eNs, "Got: %(NS)s" % {"NS":eNs}