def test_account_exists(self): """ Test to check if a certain account exists and returns a boolean value """ self.new_user_credentials.save_existing_acc() test_account = Credentials('Facebook', 'diella', 'diella26') test_account.save_existing_acc() account_exists = Credentials.account_exists('diella') self.assertTrue(account_exists)
def check_existing_accounts(username): """ Function that checks if an account exists and returns a boolean value """ return Credentials.account_exists(username)