def __init__(self):
     self.experiments_allowed = [
         generate_experiment_allowed(100, 'ud-dummy', 'Dummy experiments')
     ]
     self.groups = [Group.Group("5A")]
     self.experiments = [
         generate_experiment('ud-dummy', 'Dummy experiments')
     ]
     self.experiment_uses = [
         generate_experiment_use("student2", self.experiments[0])
     ], 1
     self.users = [
         User.User("admin1", "Admin Test User", "*****@*****.**",
                   Role.Role("administrator"))
     ]
     self.roles = [
         Role.Role("student"),
         Role.Role("instructor"),
         Role.Role("administrator")
     ]
def generate_experiment_use(user_login, exp):
    exp_use = ExperimentUse.ExperimentUse(
        datetime.datetime.utcnow(), datetime.datetime.utcnow(), exp,
        User.User(user_login, "Jaime Irurzun", "*****@*****.**",
                  Role.Role("student")), "unknown")
    return exp_use