def test_user_exists(self):
     '''
     test to check if we can return a Boolean if we don't find the user
     '''
     self.new_user.save_user()
     test_user = User("Mulki Suleiman", "Facebook", "trudet")
     test_user.save_user()
     user_exists = User.user_exists("Facebook")
     self.assertTrue(user_exists)
Esempio n. 2
0
def check_existing_user(account):
    '''
    Function that checks if a user exists with that account and returns Boolean
    '''
    return User.user_exists(account)