comparison test/test_mailgw.py @ 1582:54f7717ece32

fixes for new signature url quoting
author Richard Jones <richard@users.sourceforge.net>
date Thu, 10 Apr 2003 05:11:58 +0000
parents a53a7e197360
children 4074e2336eed
comparison
equal deleted inserted replaced
1581:87cd46dadf1a 1582:54f7717ece32
6 # 6 #
7 # This module is distributed in the hope that it will be useful, 7 # This module is distributed in the hope that it will be useful,
8 # but WITHOUT ANY WARRANTY; without even the implied warranty of 8 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 # 10 #
11 # $Id: test_mailgw.py,v 1.42 2003-03-24 04:47:44 richard Exp $ 11 # $Id: test_mailgw.py,v 1.43 2003-04-10 05:11:58 richard Exp $
12 12
13 import unittest, cStringIO, tempfile, os, shutil, errno, imp, sys, difflib 13 import unittest, cStringIO, tempfile, os, shutil, errno, imp, sys, difflib
14 import rfc822 14 import rfc822
15 15
16 # Note: Should parse emails according to RFC2822 instead of performing a 16 # Note: Should parse emails according to RFC2822 instead of performing a
222 nosy: Chef, mary, richard 222 nosy: Chef, mary, richard
223 status: unread 223 status: unread
224 title: Testing... 224 title: Testing...
225 _______________________________________________________________________ 225 _______________________________________________________________________
226 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 226 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
227 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 227 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
228 _______________________________________________________________________ 228 _______________________________________________________________________
229 ''') 229 ''')
230 230
231 # BUG 231 # BUG
232 # def testMultipart(self): 232 # def testMultipart(self):
275 275
276 ---------- 276 ----------
277 status: unread -> chatting 277 status: unread -> chatting
278 _______________________________________________________________________ 278 _______________________________________________________________________
279 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 279 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
280 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 280 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
281 _______________________________________________________________________ 281 _______________________________________________________________________
282 ''') 282 ''')
283 283
284 def testFollowup(self): 284 def testFollowup(self):
285 self.doNewIssue() 285 self.doNewIssue()
326 assignedto: -> mary 326 assignedto: -> mary
327 nosy: +john, mary 327 nosy: +john, mary
328 status: unread -> chatting 328 status: unread -> chatting
329 _______________________________________________________________________ 329 _______________________________________________________________________
330 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 330 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
331 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 331 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
332 _______________________________________________________________________ 332 _______________________________________________________________________
333 ''') 333 ''')
334 334
335 def testFollowupTitleMatch(self): 335 def testFollowupTitleMatch(self):
336 self.doNewIssue() 336 self.doNewIssue()
373 assignedto: -> mary 373 assignedto: -> mary
374 nosy: +john, mary 374 nosy: +john, mary
375 status: unread -> chatting 375 status: unread -> chatting
376 _______________________________________________________________________ 376 _______________________________________________________________________
377 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 377 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
378 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 378 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
379 _______________________________________________________________________ 379 _______________________________________________________________________
380 ''') 380 ''')
381 381
382 def testFollowupNosyAuthor(self): 382 def testFollowupNosyAuthor(self):
383 self.doNewIssue() 383 self.doNewIssue()
420 ---------- 420 ----------
421 nosy: +john 421 nosy: +john
422 status: unread -> chatting 422 status: unread -> chatting
423 _______________________________________________________________________ 423 _______________________________________________________________________
424 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 424 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
425 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 425 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
426 _______________________________________________________________________ 426 _______________________________________________________________________
427 427
428 ''') 428 ''')
429 429
430 def testFollowupNosyRecipients(self): 430 def testFollowupNosyRecipients(self):
469 ---------- 469 ----------
470 nosy: +john 470 nosy: +john
471 status: unread -> chatting 471 status: unread -> chatting
472 _______________________________________________________________________ 472 _______________________________________________________________________
473 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 473 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
474 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 474 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
475 _______________________________________________________________________ 475 _______________________________________________________________________
476 476
477 ''') 477 ''')
478 478
479 def testFollowupNosyAuthorAndCopy(self): 479 def testFollowupNosyAuthorAndCopy(self):
518 ---------- 518 ----------
519 nosy: +john 519 nosy: +john
520 status: unread -> chatting 520 status: unread -> chatting
521 _______________________________________________________________________ 521 _______________________________________________________________________
522 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 522 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
523 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 523 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
524 _______________________________________________________________________ 524 _______________________________________________________________________
525 525
526 ''') 526 ''')
527 527
528 def testFollowupNoNosyAuthor(self): 528 def testFollowupNoNosyAuthor(self):
565 565
566 ---------- 566 ----------
567 status: unread -> chatting 567 status: unread -> chatting
568 _______________________________________________________________________ 568 _______________________________________________________________________
569 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 569 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
570 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 570 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
571 _______________________________________________________________________ 571 _______________________________________________________________________
572 572
573 ''') 573 ''')
574 574
575 def testFollowupNoNosyRecipients(self): 575 def testFollowupNoNosyRecipients(self):
613 613
614 ---------- 614 ----------
615 status: unread -> chatting 615 status: unread -> chatting
616 _______________________________________________________________________ 616 _______________________________________________________________________
617 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 617 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
618 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 618 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
619 _______________________________________________________________________ 619 _______________________________________________________________________
620 620
621 ''') 621 ''')
622 622
623 def testNosyRemove(self): 623 def testNosyRemove(self):
721 721
722 ---------- 722 ----------
723 status: unread -> chatting 723 status: unread -> chatting
724 _______________________________________________________________________ 724 _______________________________________________________________________
725 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 725 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
726 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 726 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
727 _______________________________________________________________________ 727 _______________________________________________________________________
728 ''') 728 ''')
729 729
730 730
731 def testMultipartEnc01(self): 731 def testMultipartEnc01(self):
776 776
777 ---------- 777 ----------
778 status: unread -> chatting 778 status: unread -> chatting
779 _______________________________________________________________________ 779 _______________________________________________________________________
780 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 780 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
781 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 781 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
782 _______________________________________________________________________ 782 _______________________________________________________________________
783 ''') 783 ''')
784 784
785 def testContentDisposition(self): 785 def testContentDisposition(self):
786 self.doNewIssue() 786 self.doNewIssue()
857 857
858 ---------- 858 ----------
859 status: unread -> chatting 859 status: unread -> chatting
860 _______________________________________________________________________ 860 _______________________________________________________________________
861 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 861 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
862 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 862 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
863 _______________________________________________________________________ 863 _______________________________________________________________________
864 ''') 864 ''')
865 865
866 def testEmailQuoting(self): 866 def testEmailQuoting(self):
867 self.instance.config.EMAIL_KEEP_QUOTED_TEXT = 'no' 867 self.instance.config.EMAIL_KEEP_QUOTED_TEXT = 'no'

Roundup Issue Tracker: http://roundup-tracker.org/