'Normal case: Copy a volume to an image.'

@mock.patch.object(vsp_utils, 'execute', side_effect=_execute)
def test_copy_volume_to_image(self, execute):

    image_service = 'fake_image_service'
    image_meta = 'fake_image_meta'
    with mock.patch.object(driver.VolumeDriver, 'copy_volume_to_image') as mock_copy_volume_to_image:
        self.driver.copy_volume_to_image(self.ctxt, TEST_VOLUME[0], image_service, image_meta)
    mock_copy_volume_to_image.assert_called_with(self.ctxt, TEST_VOLUME[0], image_service, image_meta)
