def test_contact_exists(self): test_contact = Contact("Test", "user", "0711223344", "*****@*****.**") # new contact test_contact.save_contact() contact_exists = Contact.contact_exists("0711223344") # Checks whether the value returned is true... self.assertTrue(contact_exists)
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)