def login_required(func):
    @wraps(func)
    def wrapper(*a, **kw):
        if not session.get('logged_in'):
            abort(401)
        return func(*a, **kw)
    return wrapper
Test that a single object's data is correctly subtracted from a summary.
dataset/ETHPy150Open joealcorn/PyPaste/PyPaste/views/admin/__init__.py/login_required--crossover with--dataset/ETHPy150Open pympler/pympler/test/muppy/test_summary.py/SummaryTest.test_subtract