예제 #1
0
 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)
예제 #2
0
def isexist_accounts(user_name):
    return Accounts.account_exists(user_name)