def test_account_exists(self): ''' test to check if we can return a Boolean if we cannot find the account. ''' self.new_account.save_account() test_account = User("Test","user","*****@*****.**") # new account test_account.save_account() account_exists = User.account_exist("Test") self.assertTrue(account_exists)
def check_existing_accounts(user_name): ''' Function that check if an account exists with that number and return a Boolean ''' return User.account_exist(user_name)