def get_by_key_name_or_404(model, key_name, parent=None):
    obj = model.get_by_key_name(key_name, parent=parent)
    if obj:
        return obj

    abort(404)
Tests PokitDok.activities with a specific activity id
dataset/ETHPy150Open moraes/tipfy/tipfy/appengine/db/__init__.py/get_by_key_name_or_404--crossover with--dataset/ETHPy150Open pokitdok/pokitdok-python/tests/test_api_client.py/TestAPIClient.test_activities_with_activity_id