@mock.patch.object(rest_client.KioxiaProvisioner, 'create_volume')
def test_volume_create_exception(self, mock_create_volume):
    testvol = _stub_volume()
    mock_create_volume.side_effect = Exception()
    self.assertRaises(exception.VolumeBackendAPIException, self.driver.create_volume, testvol)
@mock.patch.object(rest_client.KioxiaProvisioner, 'create_volume')
def test_volume_create_exception(self, mock_create_volume):
    testvol = _stub_volume()
    mock_create_volume.side_effect = Exception()
    self.assertRaises(exception.VolumeBackendAPIException, self.driver.create_volume, testvol)