def check_asset(res, asset_data, errors):
    """Check single asset."""
    try:
        obj = res.data.get(asset_data['slug'])
    except LookupError:
        errors.append('Object with slug {} does not exist.'.format(
            asset_data['slug']))
        return
    if obj.name != asset_data['name']:
        errors.append('Object with slug {} has wrong name: "{}" != "{}".'.
            format(obj.slug, obj.name, asset_data['name']))
