Пример #1
0
 def test_vcard_format(self):
     contact = Contact(email='*****@*****.**',
                       first_name='Toto',
                       last_name='Titi')
     self.assertEquals(contact.vcard_format(), 'BEGIN:VCARD\r\nVERSION:3.0\r\n'\
                       'EMAIL;TYPE=INTERNET:[email protected]\r\nFN:Toto Titi\r\n'\
                       'N:Titi;Toto;;;\r\nEND:VCARD\r\n')
Пример #2
0
 def test_vcard_format(self):
     contact = Contact(email='*****@*****.**', first_name='Toto', last_name='Titi')
     self.assertEquals(contact.vcard_format(), 'BEGIN:VCARD\r\nVERSION:3.0\r\n'\
                       'EMAIL;TYPE=INTERNET:[email protected]\r\nFN:Toto Titi\r\n'\
                       'N:Titi;Toto;;;\r\nEND:VCARD\r\n')