def test_account_saved(self): ''' This test case checks wether the account is saved or not ''' self.new_user.save_account() another_account=User("shema yvan","yvan-buravan") another_account.save_account() accounts_saved=User.account_saved("shema yvan") self.assertTrue(accounts_saved)
def check_on_acc(name): ''' This function checks if an account exists using name ''' return User.account_saved(name)