def setUp(self): super(TestServiceList, self).setUp() self.services_mock.list.return_value = [self.fake_service] # Get the command object to test self.cmd = service.ListService(self.app, None)
def setUp(self): super(TestServiceList, self).setUp() self.services_mock.list.return_value = [ fakes.FakeResource( None, copy.deepcopy(identity_fakes.SERVICE), loaded=True, ), ] # Get the command object to test self.cmd = service.ListService(self.app, None)