def setUp(self): super(TestProjectSet, self).setUp() self.projects_mock.get.return_value = self.fake_project self.projects_mock.update.return_value = self.fake_project # Get the command object to test self.cmd = project.SetProject(self.app, None)
def setUp(self): super(TestProjectSet, self).setUp() self.projects_mock.get.return_value = fakes.FakeResource( None, copy.deepcopy(PROJECT), loaded=True, ) # Get the command object to test self.cmd = project.SetProject(self.app, None)