def setUp(self): super(TestUserDelete, self).setUp() # This is the return value for utils.find_resource() self.users_mock.get.return_value = self.fake_user self.users_mock.delete.return_value = None # Get the command object to test self.cmd = user.DeleteUser(self.app, None)
def setUp(self): super(TestUserDelete, self).setUp() # This is the return value for utils.find_resource() self.users_mock.get.return_value = fakes.FakeResource( None, copy.deepcopy(identity_fakes.USER), loaded=True, ) self.users_mock.delete.return_value = None # Get the command object to test self.cmd = user.DeleteUser(self.app, None)