Exemple #1
0
 def display_name(self):
     if self._display_name is None:
         return u''
     return mime_to_unicode(self._display_name)
Exemple #2
0
def test_header_to_unicode():
    assert_equal(u'Eugueny ώ Kontsevoy', mime_to_unicode("=?UTF-8?Q?Eugueny_=CF=8E_Kontsevoy?=") )
    assert_equal(u'hello', mime_to_unicode("hello"))
    assert_equal(None, mime_to_unicode(None))