def simple_decorator(f):
    def decorator(*args, **kwargs):
        abort(401)
    return decorator
Checks whether user is logged in or raises error 401.
dataset/ETHPy150Open kvesteri/flask-generic-views/tests/test_model_router.py/simple_decorator