'Test snapshot can be created and deleted.'

def test_can_delete_errored_snapshot(self):

    volume = tests_utils.create_volume(self.context, CONF.host)
    snapshot = create_snapshot(volume.id, size=volume['size'], ctxt=self.context, status=fields.SnapshotStatus.ERROR)
    self.volume_api.delete_snapshot(self.context, snapshot)
    self.assertEqual(fields.SnapshotStatus.DELETING, snapshot.status)
    self.volume.delete_volume(self.context, volume)
