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
def delete_test_user(self, username): """ deletes the user from database """ user = User(username, 'dummy') user.delete_user()