def set_experiment_user(target):
    def wrapper(*args, **kwargs):
        request = args[0]
        WebUser(request).confirm_human()
        return target(*args, **kwargs)

    return wrapper
Decorator for setting the WebUser for use with ab split testing
dataset/ETHPy150Open Miserlou/django-easy-split/easy_split/decorators.py/set_experiment_user