def setUp(self): super(TestAPI, self).setUp() self.compute_api = api.API(self.context) self.container = objects.Container(self.context, **utils.get_test_container()) self.network = objects.Network(self.context, **utils.get_test_network())
def setUp(self): super(TestAPI, self).setUp() self.compute_api = api.API(self.context) self.container = objects.Container( self.context, **utils.get_test_container()) self.network = objects.Network( self.context, **utils.get_test_network())
def setUp(self): super(TestAPI, self).setUp() p = mock.patch('zun.scheduler.client.query.SchedulerClient') p.start() self.addCleanup(p.stop) self.compute_api = api.API(self.context) self.container = objects.Container(self.context, **utils.get_test_container()) self.network = objects.ZunNetwork(self.context, **utils.get_test_network())
def setUp(self): super(TestNetworkObject, self).setUp() self.fake_network = utils.get_test_network()