def display_contacts(): ''' Function that returns all the saved contacts ''' return Contact.display_contacts() if __name__ == '__main__': main()
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) ''' method that returns a list of all contacts saved ''' self.assertEqual(Contact.display_contacts(), Contact.contact_list)
def display_contacts(): ''' Function that returns all the saved contacts ''' return Contact.display_contacts()
def display_contacts(): """ Function that returns all the save contacts """ return Contact.display_contacts()
def display_contacts(): return Contact.display_contacts()
def check_existing_contacts(number): ''' function that checks if a contact exists by the number and returns a boolean ''' return Contact.display_contacts()
def test_displat_all_contacts(self): ''' Method that returns a list of all contacts saved ''' self.assertEqual(Contact.display_contacts(), Contact.contact_list)
def test_display_all_contacts(self): self.assertEqual(Contact.display_contacts(), Contact.contact_list)
def test_display_all_contacts(self): ''' method taht returns a list of all the contacts saved ''' self.assertEqual(Contact.display_contacts(), Contact.contact_list)
def test_display_all_contacts(self): ''' test_dislplay_all_contacts test case to test if we can be able to display all contacts ''' self.assertEqual(Contact.display_contacts(),Contact.contact_list)
def test_display_all_contact(self): """ Method that returns a list of all contacts saved. """ self.assertEqual(Contact.display_contacts(), Contact.contact_list)
def test_display_all_contacts(self): ''' method that returns list the contact saved ''' self.assertEqual(Contact.display_contacts(), Contact.contact_list)
def display_contact(): """ function to that returns all saved contacts """ return Contact.display_contacts()