|
30 | 30 | from roundup import mailgw, i18n, roundupdb |
31 | 31 | from roundup.mailgw import MailGW, Unauthorized, uidFromAddress, \ |
32 | 32 | parseContent, IgnoreLoop, IgnoreBulk, MailUsageError, MailUsageHelp |
33 | | -from roundup import init, instance, password, rfc2822, __version__ |
| 33 | +from roundup import init, instance, password, __version__ |
34 | 34 | from roundup.anypy.sets_ import set |
35 | 35 |
|
36 | 36 | #import db_test_base |
@@ -2534,13 +2534,6 @@ def testUserCreate(self): |
2534 | 2534 | i = uidFromAddress( self. db, ( '', '[email protected]'), 1) |
2535 | 2535 | self. assertNotEqual( uidFromAddress( self. db, ( '', '[email protected]'), 1), i) |
2536 | 2536 |
|
2537 | | - def testRFC2822(self): |
2538 | | - ascii_header = "[issue243] This is a \"test\" - with 'quotation' marks" |
2539 | | - unicode_header = '[issue244] \xd0\xb0\xd0\xbd\xd0\xb4\xd1\x80\xd0\xb5\xd0\xb9' |
2540 | | - unicode_encoded = '=?utf-8?q?[issue244]_=D0=B0=D0=BD=D0=B4=D1=80=D0=B5=D0=B9?=' |
2541 | | - self.assertEqual(rfc2822.encode_header(ascii_header), ascii_header) |
2542 | | - self.assertEqual(rfc2822.encode_header(unicode_header), unicode_encoded) |
2543 | | - |
2544 | 2537 | def testRegistrationConfirmation(self): |
2545 | 2538 | otk = "Aj4euk4LZSAdwePohj90SME5SpopLETL" |
2546 | 2539 | self.db.getOTKManager().set(otk, username='johannes') |
|
0 commit comments