def setUp(self): super(TestServerDelete, self).setUp() self.servers_mock.delete.return_value = None # Get the command object to test self.cmd = server.DeleteServer(self.app, None)
def setUp(self): super(TestServerDelete, self).setUp() # This is the return value for utils.find_resource() self.servers_mock.get.return_value = fakes.FakeResource( None, copy.deepcopy(compute_fakes.SERVER), loaded=True, ) self.servers_mock.delete.return_value = None # Get the command object to test self.cmd = server.DeleteServer(self.app, None)