def test_find_account_exist(self): ''' test to find user account and return ''' self.new_account.add_account() new_account_test = Credi('Instagram', 'malcom', 'gram') new_account_test.add_account() account_exists = Credi.find_account_exist("malcom", "gram") self.assertTrue(account_exists)
def account_exist(): ''' loop throuh list to check account already there ''' return Credi.find_account_exist()