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

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

    image_service = 'fake_image_service'
    image_id = 'fake_image_id'
    self.configuration.vsp_horcm_numbers = (400, 401)
    with mock.patch.object(driver.VolumeDriver, 'copy_image_to_volume') as mock_copy_image:
        self.driver.copy_image_to_volume(self.ctxt, TEST_VOLUME[0], image_service, image_id)
    mock_copy_image.assert_called_with(self.ctxt, TEST_VOLUME[0], image_service, image_id)
