def setUp(self): super(TestServiceSet, self).setUp() self.service = compute_fakes.FakeService.create_one_service() self.sdk_client.enable_service.return_value = self.service self.sdk_client.disable_service.return_value = self.service self.cmd = service.SetService(self.app, None)
def setUp(self): super(TestServiceSet, self).setUp() self.service_mock.enable.return_value = [fakes.FakeResource( None, copy.deepcopy(compute_fakes.SERVICE), loaded=True, )] self.service_mock.disable.return_value = [fakes.FakeResource( None, copy.deepcopy(compute_fakes.SERVICE), loaded=True, )] self.cmd = service.SetService(self.app, None)