@mock.patch.object(rest_client.KioxiaProvisioner, 'clone_volume')
def test_create_cloned_volume_failure(self, mock_clone_volume):
    testvol = _stub_volume()
    mock_clone_volume.return_value = fail_prov_response
    self.assertRaises(exception.VolumeBackendAPIException, self.driver.create_cloned_volume, testvol, testvol)
@mock.patch.object(rest_client.KioxiaProvisioner, 'clone_volume')
def test_create_cloned_volume_failure(self, mock_clone_volume):
    testvol = _stub_volume()
    mock_clone_volume.return_value = fail_prov_response
    self.assertRaises(exception.VolumeBackendAPIException, self.driver.create_cloned_volume, testvol, testvol)