def test_account_exists(self): test2_account = Account("mwangi","njuguna","*****@*****.**","press") test2_account.save_account() account_exists = test2_account.account_exist("*****@*****.**") self.assertTrue(account_exists)
def test_account_exists(self): self.new_account.save_account() test_account = Account("Migot", "Sharon", "0790437491", "*****@*****.**", "MigotSharon", "12345") test_account.save_account() account_exists = Account.account_exist("0790437491") self.assertTrue(account_exists)
def test_account_exists(self): self.new_account.save_account() test_account = Account("Anna", "Adhiambo", "0758579812", "*****@*****.**", "AnnaAdhiambo", "12345") test_account.save_account() account_exists = Account.account_exist("0758579812") self.assertTrue(account_exists)
def test_account_exists(self): ''' test to check if we can return a Boolean if we cannot find the account. ''' self.new_account.save_account() test_account = Account("Test","jjjjjjjdd") # new account test_account.save_account() account_exists = Account.account_exist("Test") self.assertFalse(account_exists)
def test_account_exists(self): ''' test to check if we can return a Boolean if we cannot find the account. ''' self.new_account.save_account() test_account = Account("account_name","username","password") # new contact test_account.save_account() account_exists = Account.account_exist("account_name") self.assertTrue(account_exists)
def test_account_exists(self): ''' test to check if we can return a Boolean if we cannot find the account. ''' self.new_account.save_account() test_account = Account("Test", "user", "0711223344") # new account test_account.save_account() account_exists = Account.account_exist("0711223344") self.assertTrue(account_exists)
def test_account_exists(self): ''' test to check if we can return a Boolean if we cannot find the account. ''' self.new_account.save_account() test_account= Account("facebook","mwesh","2020") # new account test_account.save_account() account_exists = Account.account_exist("0711223344") self.assertTrue(not(account_exists))
def test_account_exists(self): ''' test to check if we can return a Boolean if we cannot find the account. ''' self.new_account.save_account() test_account = Account("clin","twiter","565656","*****@*****.**") # new account test_account.save_account() account_exists = Account.account_exist("565656") self.assertTrue(account_exists)
def test_account_exists(self): ''' test to check if we can return a Boolean if we cannot find the contact. ''' self.new_account.save_account() test_account = Account("Test","*****@*****.**","DonJohn","0711223344","233535") # new contact test_account.save_account() account_exists = Account.account_exist("*****@*****.**") self.assertTrue(account_exists)
def test_account_exists(self): ''' test to check if we can return a Boolean if we cannot find the account. ''' self.new_account.save_account() test_account = Account("zelly","linkedin","00000","*****@*****.**") # new account test_account.save_account() account_exists = Account.account_exist("00000") self.assertTrue(account_exists)
def test_account_exists(self): ''' test to check if we can return a Boolean if we cannot find the account. ''' self.new_account.save_account() test_account = Account("Test", "user", "0788501277", "*****@*****.**", "123") # new account test_account.save_account() account_exists = Account.account_exist("*****@*****.**") self.assertTrue(account_exists)
def test_account_exists(self): ''' test to check if we can return a Boolean if we cannot find the account. ''' self.new_account.save_account() test_account = Account("irene", "facebook", "irene254", "*****@*****.**") # Creating new account test_account.save_account() account_exists = Account.account_exist("irene254") self.assertTrue(account_exists)
def check_existing_accounts(account_name): ''' Function that check if an account exists with that account_name and return a Boolean ''' return Account.account_exist(account_name)
def check_existing_users(surname): ''' Function that check if a account exists with that username and return a Boolean ''' return Account.account_exist(surname)
def check_if_account_exists(email): ''' Function that checks if an account exists ''' return Account.account_exist(email)
def check_existing_accounts(email): return Account.account_exist(email)
def check_existing_accounts(number): ''' Function that check if a account exists with that number and return a Boolean ''' return Account.account_exist(number)
def check_existing_accounts(email): ''' Function that check if an account exists with that email address and return a Boolean ''' return Account.account_exist(email)
def check_existing_accounts(password): ''' Function that check if a account exists with that password and return a Boolean ''' return Account.account_exist(password)