def test_account_exist(self):
        self.new_user.create_account()

        user2 = User('sally', '*999')
        user2.create_account()  

        user_exists = User.user_exists('sally', '*999')

        self.assertTrue(user_exists) 
Exemple #2
0
def check_existing_users(name):
    return User.user_exists(name)
Exemple #3
0
def login(user_name, Password):
    '''
    checks if a user exists with that number and returns a Boolean
    '''
    return User.user_exists(user_name, Password)