def setUp(self): unittest.TestCase.setUp(self) rpc.clear() @rpc.export class QueueService(object): @rpc.enable @classmethod def count(cls): print "QueueService.count() [classmethod]" @rpc.enable def push(self, item): print "QueueService.push()" @rpc.disable def pop(self): print "QueueService.pop()" self.QueueService = QueueService # so that test cases can access this class definition
def setUp(self): unittest.TestCase.setUp(self) rpc.clear()