示例#1
0
 def test_mail_format(self):
     contact = Contact(email='*****@*****.**')
     self.assertEquals(contact.mail_format(), '*****@*****.**')
     contact = Contact(email='*****@*****.**', first_name='Toto')
     self.assertEquals(contact.mail_format(), '*****@*****.**')
     contact = Contact(email='*****@*****.**', first_name='Toto', last_name='Titi')
     self.assertEquals(contact.mail_format(), 'Titi Toto <*****@*****.**>')
示例#2
0
 def test_mail_format(self):
     contact = Contact(email='*****@*****.**')
     self.assertEquals(contact.mail_format(), '*****@*****.**')
     contact = Contact(email='*****@*****.**', first_name='Toto')
     self.assertEquals(contact.mail_format(), '*****@*****.**')
     contact = Contact(email='*****@*****.**',
                       first_name='Toto',
                       last_name='Titi')
     self.assertEquals(contact.mail_format(), 'Titi Toto <*****@*****.**>')