def test_account_exists(self):
     '''
     unlike the previous test this test returns a true/false soort of answer depending on whether the account exists or not
     '''
     self.new_account.save_account()
     test_account = Accounts('abcd', 'efgh', 'ijkl', 'mnop')
     test_account.save_account()
     account_exists = Accounts.account_exists('ijkl')
     self.assertTrue(account_exists)
Beispiel #2
0
def isexist_accounts(user_name):
    return Accounts.account_exists(user_name)