@mock.patch.object(rest_client.KioxiaProvisioner, 'create_snapshot_volume')
def test_create_volume_from_snapshot_exception(self, mock_create_snapshot_volume):
    testsnap = _stub_snapshot()
    testvol = _stub_volume()
    mock_create_snapshot_volume.side_effect = Exception()
    self.assertRaises(exception.VolumeBackendAPIException, self.driver.create_volume_from_snapshot, testvol, testsnap)
@mock.patch.object(rest_client.KioxiaProvisioner, 'create_snapshot_volume')
def test_create_volume_from_snapshot_exception(self, mock_create_snapshot_volume):
    testsnap = _stub_snapshot()
    testvol = _stub_volume()
    mock_create_snapshot_volume.side_effect = Exception()
    self.assertRaises(exception.VolumeBackendAPIException, self.driver.create_volume_from_snapshot, testvol, testsnap)