38 from xmlrpc.client
import ServerProxy
40 from xmlrpclib
import ServerProxy
50 self.
master = ServerProxy(rosgraph.get_master_uri())
59 self.assert_(len(args) == 3,
"invalid API return value triplet: %s"%str(args))
68 self.assert_(len(args) == 3,
"invalid API return value triplet: %s"%str(args))
70 assert self.
last_code == 0,
"Call should have failed with status code 0: %s"%self.
last_msg 75 self.assert_(len(args) == 3,
"invalid API return value triplet: %s"%str(args))
80 assert self.
last_code == -1,
"Call should have returned error -1 code: %s"%self.
last_msg
def apiSuccess(self, args)
unit test assertion that fails if status code is not 1 and otherwise returns the value parameter ...
def apiError(self, args, msg=None)
unit test assertion that fails if status code is not -1 and otherwise returns true ...
def apiFail(self, args)
unit test assertions that fails if status code is not 0 and otherwise returns true ...