Esempio n. 1
0
 def test_user_exists(self):
     """
     test_check_user_exists to test if a user exists or not
     """
     self.new_user.save_user()
     test_user = User("victor maina","*****@*****.**","grooviq","254groove")
     test_user.save_user()
     user_exists = User.user_exists("grooviq")
     self.assertTrue(user_exists)
Esempio n. 2
0
def check_existing_user(username):
    """
    Function that check if a user exists & login details
    """
    return User.user_exists(username)