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 <*****@*****.**>')