@mock.patch.object(rest_client.KioxiaProvisioner, 'create_snapshot')
def test_create_snapshot_exception(self, mock_create_snapshot):
    testsnap = _stub_snapshot()
    mock_create_snapshot.side_effect = Exception()
    self.assertRaises(exception.VolumeBackendAPIException, self.driver.create_snapshot, testsnap)
@mock.patch.object(rest_client.KioxiaProvisioner, 'create_snapshot')
def test_create_snapshot_exception(self, mock_create_snapshot):
    testsnap = _stub_snapshot()
    mock_create_snapshot.side_effect = Exception()
    self.assertRaises(exception.VolumeBackendAPIException, self.driver.create_snapshot, testsnap)