def auth_required(secret_key_func):
    def actual_decorator(obj):

        def test_func(request, *args, **kwargs):
            secret_key = secret_key_func(request, *args, **kwargs)
            return validate_signature(request, secret_key) or request.user.is_authenticated()

        decorator = request_passes_test(test_func)
        return wrap_object(obj, decorator)

    return actual_decorator
Test that serializers have: []
dataset/ETHPy150Open croach/django-simple-rest/simple_rest/auth/decorators.py/auth_required--crossover with--dataset/ETHPy150Open saltstack/salt/tests/integration/loader/globals.py/LoaderGlobalsTest.test_serializers