Exemplo n.º 1
0
 def add_test_user(self, username, password):
     """ adds a user to the database so that we can use it for testing
     """
     user = User(username, password)
     # delete the user if its already in the database
     # just to be sure that its not part of the last
     # unsucessful run
     user.delete_user()
     rv = user.add_user()
     assert rv