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)
Beispiel #2
0
    def test_contact_exists(self):
        self.new_contact.save_contact()
        test_contact = Contact("Test", "user", "0791406870",
                               "*****@*****.**")
        test_contact.save_contact()

        contact_exists = Contact.contact_exist("0791406870")
        self.assertTrue(contact_exists)
Beispiel #3
0
	def test_contact_exists(self):
		'''
		test to check if we can return a Boolean  if we cannot find the contact.
		'''
		self.new_contact.save_contact()
		test_contact = Contact("Test","user","0711223344","*****@*****.**") # new contact
		test_contact.save_contact()
		contact_exists = Contact.contact_exist("0711223344")
		self.assertTrue(contact_exists)
 def test_contact_exists(self):
     '''
     test to check if we can return a boolean or the contact
     '''
     self.new_contact.save_contact()
     test_contact = Contact("Test", "user", "071111333", "*****@*****.**")
     test_contact.save_contact()
     contact_exists = Contact.contact_exist("071111333")
     self.assertTrue(contact_exists)
    def test_contact_exists(self):

        self.new_contact.save_contact()
        test_contact = Contact("Test", "user", "0712345678",
                               "*****@*****.**")  # new contact_list
        test_contact.save_contact()

        contact_exists = Contact.contact_exist("0712345678")

        self.assertTrue(contact_exists)
Beispiel #6
0
    def test_contact_exists(self):
        '''
        test to check if we can return a boolean if we cannot find a contact.
        '''

        self.new_contact.save_contact()
        test_contact = Contact ("Kare", "Kimita","0780047102","*****@*****.**")
        test_contact.save_contact()

        contact_exists = Contact.contact_exist("0780047102")
        self.assertTrue(contact_exists)
Beispiel #7
0
    def test_contact_exist(self):
        '''
        test to check if we can return a Boolean if we cannot find a contact.
        '''
        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)
Beispiel #8
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)
Beispiel #9
0
    def test_contact_exists(self):
        """
        Test to check if we can return a Boolean if we cannot find the contact.
        """

        self.new_contact.save_contact()
        # Test user
        test_contact = Contact("Test", "user", "0722334455", "*****@*****.**")
        # We save
        test_contact.save_contact()
        # variable that stores what we expect
        contact_exists = Contact.contact_exist("0722334455")
        # The test that should return a variable
        self.assertTrue(contact_exists)
Beispiel #10
0
def check_existing_contacts(number):
    '''
    Function that check if a contact exists with that number and return a Boolean
    '''
    return Contact.contact_exist(number)
Beispiel #11
0
def check_existing_contact(number):
    """
    Function that checks if a contact exists with that number and return Boolean
    """
    return Contact.contact_exist(number)
Beispiel #12
0
def check_existing_contacts(number):
    return Contact.contact_exist(number)
Beispiel #13
0
def check_existing_contacts(number):
    '''
    Function that checks if a contact exists based on the number inputted and returns a boolean
    '''
    return Contact.contact_exist(number)
Beispiel #14
0
 def test_contact_exists(self):
     test_contact = Contact("test", "user","700000000", "*****@*****.**")
     test_contact.save_contact()
     contact_exists = Contact.contact_exist("700000000")
     self.assertTrue(contact_exists)
Beispiel #15
0
def check_existing_contacts(number):
    '''
    function that check if that contact exist and return with a boolean
    '''
    return Contact.contact_exist(number)
Beispiel #16
0
def checking_if_contact_exists(number):
    '''
    function to check if a contact exists with the number and 
    return a boolean
    '''
    return Contact.contact_exist(number)