def generate_experiment_allowed(time_allowed, exp_name, exp_cat_name):
    exp = generate_experiment(exp_name, exp_cat_name)
    return ExperimentAllowed.ExperimentAllowed(exp, time_allowed, 5, True, '%s::user' % exp_name, 1, 'user')
dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/test/unit/weblab/core/test_server.py/generate_experiment_allowed/original