def test_account_exists(self): ''' test to check if we can return a Boolean if we cannot find the contact. ''' self.User1.save_accounts() test_credentials = Credentials("test", "2222") test_credentials.save_accounts() account_exists = Credentials.account_exist("2222") self.assertTrue(account_exists)
def exisiting_account(account): return Credentials.account_exist(account) '''
def check_existing_accounts(account_name): ''' Function that check if an account exists with that number and return a Boolean ''' return Credentials.account_exist(account_name)