def setUp(self): super(TestProjectList, self).setUp() self.projects_mock.list.return_value = [self.fake_project] # Get the command object to test self.cmd = project.ListProject(self.app, None)
def setUp(self): super(TestProjectList, self).setUp() self.projects_mock.list.return_value = [ fakes.FakeResource( None, copy.deepcopy(identity_fakes.PROJECT), loaded=True, ), ] # Get the command object to test self.cmd = project.ListProject(self.app, None)