예제 #1
0
def display_contacts():
    '''
    Function that returns all the saved contacts
    '''
    return Contact.display_contacts()

    if __name__ == '__main__':

        main()
예제 #2
0
    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)
예제 #3
0
def display_contacts():
    '''
    Function that returns all the saved contacts
    '''
    return Contact.display_contacts()
예제 #4
0
def display_contacts():
    """
    Function that returns all the save contacts
    """
    return Contact.display_contacts()
예제 #5
0
파일: run.py 프로젝트: lamechy/Contact_list
def display_contacts():
    return Contact.display_contacts()
예제 #6
0
def check_existing_contacts(number):
    '''
    function that checks if a contact exists by the number and returns a boolean
    '''
    return Contact.display_contacts()
예제 #7
0
    def test_displat_all_contacts(self):
        '''
        Method that returns a list of all contacts saved
        '''

        self.assertEqual(Contact.display_contacts(), Contact.contact_list)
예제 #8
0
    def test_display_all_contacts(self):

        self.assertEqual(Contact.display_contacts(), Contact.contact_list)
예제 #9
0
    def test_display_all_contacts(self):
        '''
        method taht returns a list of all the contacts saved
        '''

        self.assertEqual(Contact.display_contacts(), Contact.contact_list)
예제 #10
0
    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)
예제 #11
0
 def test_display_all_contact(self):
     """
     Method that returns a list of all contacts saved.
     """
     self.assertEqual(Contact.display_contacts(), Contact.contact_list)
예제 #12
0
 def test_display_all_contacts(self):
     '''
     method that returns list the contact saved
     '''
     self.assertEqual(Contact.display_contacts(), Contact.contact_list)
예제 #13
0
def display_contact():
    """
    function to that returns all saved contacts
    """
    return Contact.display_contacts()