'Test volume creation fail w/o a partial volume being created.
Test the failed creation of a volume where a partial volume with
the name has not been created, thus no cleanup is required.'

@mock.patch.object(library, 'LOG', mock.Mock())
def test_create_volume_fail_clean(self):

    self.library._get_volume = mock.Mock(side_effect=exception.VolumeNotFound(message=''))
    self.library._client.create_volume = mock.Mock(side_effect=exception.NetAppDriverException)
    self.library._client.delete_volume = mock.Mock()
    fake_volume = copy.deepcopy(get_fake_volume())
    self.assertRaises(exception.NetAppDriverException, self.library.create_volume, fake_volume)
    self.assertTrue(self.library._get_volume.called)
    self.assertFalse(self.library._client.delete_volume.called)
    self.assertEqual(1, library.LOG.error.call_count)
