Exemplo n.º 1
0
 def create_user_helper(username, **kwargs):
     user_data = { 'username': username }
     user_data.update(**kwargs)
     user = User(**user_data)
     user.set_password('password')
     user.save()
     return user
Exemplo n.º 2
0
 def create_test_user(self, username):
     user = User(username=username)
     user.set_password('password')
     user.save()
     return user