def test_find_account(self): ''' test to check accounts by accountName and display information ''' self.new_account.save_account() test_account = Credentials("Instagram", "Test", "user123") # new account test_account.save_account() found_account = Credentials.find_account("Instagram") self.assertEqual(found_account.password, test_account.password)
def find_account(accountName): ''' Function that finds a user account by accountName and returns the account ''' return Credentials.find_account(accountName)