def test_contact_exists(self): self.new_contact.save_contact() test_contact = Contact("Test", "user", "0711223344", "*****@*****.**") test_contact.save_contact() contact_exists = Contact.contact_exist("0711223344") self.assertTrue(contact_exists)
def check_existing_contacts(number): return Contact.contact_exist(number)