@mock.patch('shade.OpenStackCloud.nova_client')
    def test_delete_server_already_gone(self, nova_mock):
        nova_mock.servers.list.return_value = []
        self.assertFalse(self.cloud.delete_server('tweety', wait=False))
        self.assertFalse(nova_mock.servers.delete.called)
Test that we return immediately when server is already gone
dataset/ETHPy150Open openstack-infra/shade/shade/tests/unit/test_delete_server.py/TestDeleteServer.test_delete_server_already_gone