def test_contact_exists(self): self.new_contact.saveContact() test_contact = Contact("Test", "user", "0711223344", "*****@*****.**") # new contact test_contact.saveContact() contact_exists = Contact.contactExists("0711223344") self.assertTrue(contact_exists)