def setUp(self): super(TestAPI, self).setUp() self.compute_rpcapi = rpcapi.API()
def __init__(self, context): self.manager = Manager() self.rpcapi = rpcapi.API(context=context) self.scheduler_client = scheduler_client.SchedulerClient() super(API, self).__init__()