Mercurial > p > roundup > code
diff test/test_mailgw.py @ 4981:7f8f27ce1a06
Remove rfc2822.py
A majority of the module is not being used, and the one function that is
being used can easily be replicated in mailgw.py, meaning that
everything related to the rfc2822 module can be removed.
| author | John Kristensen <john@jerrykan.com> |
|---|---|
| date | Sun, 11 May 2014 01:05:58 +1000 |
| parents | f1a2bd1dea77 |
| children | 868db43b302a |
line wrap: on
line diff
--- a/test/test_mailgw.py Fri Feb 27 00:48:25 2015 +1100 +++ b/test/test_mailgw.py Sun May 11 01:05:58 2014 +1000 @@ -30,7 +30,7 @@ from roundup import mailgw, i18n, roundupdb from roundup.mailgw import MailGW, Unauthorized, uidFromAddress, \ parseContent, IgnoreLoop, IgnoreBulk, MailUsageError, MailUsageHelp -from roundup import init, instance, password, rfc2822, __version__ +from roundup import init, instance, password, __version__ from roundup.anypy.sets_ import set #import db_test_base @@ -2534,13 +2534,6 @@ i = uidFromAddress(self.db, ('', 'user@foo.com'), 1) self.assertNotEqual(uidFromAddress(self.db, ('', 'user@bar.com'), 1), i) - def testRFC2822(self): - ascii_header = "[issue243] This is a \"test\" - with 'quotation' marks" - unicode_header = '[issue244] \xd0\xb0\xd0\xbd\xd0\xb4\xd1\x80\xd0\xb5\xd0\xb9' - unicode_encoded = '=?utf-8?q?[issue244]_=D0=B0=D0=BD=D0=B4=D1=80=D0=B5=D0=B9?=' - self.assertEqual(rfc2822.encode_header(ascii_header), ascii_header) - self.assertEqual(rfc2822.encode_header(unicode_header), unicode_encoded) - def testRegistrationConfirmation(self): otk = "Aj4euk4LZSAdwePohj90SME5SpopLETL" self.db.getOTKManager().set(otk, username='johannes')
