def login_required(obj):
    decorator = request_passes_test(lambda r, *args, **kwargs: r.user.is_authenticated())
    return wrap_object(obj, decorator)
:py:obj:`Connection.total_renegotiations` returns :py:obj:`0` before any
dataset/ETHPy150Open croach/django-simple-rest/simple_rest/auth/decorators.py/login_required--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/pyopenssl/OpenSSL/test/test_ssl.py/ConnectionRenegotiateTests.test_total_renegotiations