def test_contact_exists(self): self.new_contact.save_contact() test_contact = Contact("Test", "user", "0711223344", "*****@*****.**") # new contact test_contact.save_contact() contact_exists = Contact.contact_exists("0711223344") self.assertTrue(contact_exists)
def test_contact_exists(self): """return a boolean if contact is not found""" self.new_contact.save_contact() test_contact = Contact("Ednas","Nell","3806743158","*****@*****.**"); test_contact.save_contact() contactExists = Contact.contact_exists("3806743158") self.assertTrue(contactExists)
def test_contact_exists(self): ''' test_contact_exists test case to check if we can return a boolean if we cannot find the contact. ''' self.new_contact.save_contact() Test_contact = Contact("Test","user","0711223344","*****@*****.**") Test_contact.save_contact() contact_exists = Contact.contact_exists("0711223344") self.assertTrue(contact_exists)
def test_contact_exists(self): ''' test to check if we canreturn a Booleanif we cannot find the contact. ''' self.new_contact.save_contact() test_contact = Contact('Test', 'user', '0712345678', '*****@*****.**') # new contact test_contact.save_contact() contact_exists = Contact.contact_exists('0712345678') self.assertTrue(contact_exists)
def test_contact_exists(self): ''' test to check if we can return a Boolean if we cannot find the contact. ''' self.new_contact.save_contact() test_contact = Contact("Irene", "Adler", "98378973", "*****@*****.**") test_contact.save_contact() contact_exists = Contact.contact_exists("98378973") self.assertTrue(contact_exists)
def check_existing_contacts(number): ''' function that checks if a contact exists and returns a boolean value ''' return Contact.contact_exists(number)
def check_existing_contacts(number): ''' Function that check if a contact exists with that number and return a Boolean ''' return Contact.contact_exists(number)
def check_existing_contact(number): return Contact.contact_exists(number)