Exemplo n.º 1
0
 def test_findContact_contact(self):
     self.new_contact.saveContact()
     test_contact = Contact("Test", "user", "0711223344",
                            "*****@*****.**")  # new contact
     test_contact.saveContact()
     found_contact = Contact.findContact("0711223344")
     self.assertEqual(found_contact.number, test_contact.number)
Exemplo n.º 2
0
def copy_number(number):
    Contact_found = Contact.findContact(number)
    pyperclip.copy(Contact_found.number)