'Wrapper utility that returns a test snapshot.'

@classmethod
def create_snapshot(cls, volume_id=1, **kwargs):

    if ('name' not in kwargs):
        name = data_utils.rand_name((cls.__name__ + '-Snapshot'))
        kwargs['name'] = name
    snapshot = cls.snapshots_client.create_snapshot(volume_id=volume_id, **kwargs)['snapshot']
    cls.snapshots.append(snapshot['id'])
    waiters.wait_for_volume_resource_status(cls.snapshots_client, snapshot['id'], 'available')
    return snapshot
