'Tests create_image_from_server without the wait_until kwarg.'

@mock.patch.multiple(compute_base.BaseV2ComputeTest, compute_images_client=mock.DEFAULT, images=[], create=True)
def test_create_image_from_server_no_wait(self, compute_images_client):

    image_id = uuidutils.generate_uuid()
    fake_image = mock.Mock(response={'location': image_id})
    compute_images_client.create_image.return_value = fake_image
    image = compute_base.BaseV2ComputeTest.create_image_from_server(mock.sentinel.server_id, name='fake-snapshot-name')
    self.assertEqual(fake_image, image)
    compute_images_client.create_image.assert_called_once_with(mock.sentinel.server_id, name='fake-snapshot-name')
    self.assertEqual(1, len(compute_base.BaseV2ComputeTest.images))
    self.assertEqual(image_id, compute_base.BaseV2ComputeTest.images[0])
