コード例 #1
0
ファイル: test.py プロジェクト: pasc/mailtree
    def test_add_multi_authors(self):
        mt = MailTree('abc@efg')
        mt.add_author('*****@*****.**')
        mt.add_author('*****@*****.**')
        mt.add_author('*****@*****.**')

        self.assertEqual(mt.authors, ['*****@*****.**', '*****@*****.**'])
コード例 #2
0
ファイル: test.py プロジェクト: pasc/mailtree
    def test_add_encoded_author(self):
        mt = MailTree('abc@efg')

        mt.add_author('=?utf-8?b?xZrDtsacxJMgxYXEg23EkyA8bmFtZUBleGFtcGxlLmNvbT4=?=')
        mt.add_author('=?utf-8?b?xZrDtsacxJMgxYXEg23EkyA8bmFtZUBleGFtcGxlLmNvbT4=?=')

        self.assertEqual(mt.authors, [u'ŚöƜē Ņămē <*****@*****.**>'])
コード例 #3
0
ファイル: test.py プロジェクト: pasc/mailtree
    def test_add_author(self):
        mt = MailTree('abc@efg')
        mt.add_author('My Name Is <*****@*****.**>')

        self.assertEqual(mt.authors, ['My Name Is <*****@*****.**>'])