Mercurial > p > roundup > code
comparison test/test_mailgw.py @ 1340:58d129ad1050
fix for config example change
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 18 Dec 2002 00:42:03 +0000 |
| parents | d008233b22aa |
| children | f19dde90e473 |
comparison
equal
deleted
inserted
replaced
| 1339:fe18877acc56 | 1340:58d129ad1050 |
|---|---|
| 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.36 2002-12-11 03:17:50 richard Exp $ | 11 # $Id: test_mailgw.py,v 1.37 2002-12-18 00:42:03 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 | 14 |
| 15 # Note: Should parse emails according to RFC2822 instead of performing a | 15 # Note: Should parse emails according to RFC2822 instead of performing a |
| 16 # literal string comparision. Parsing the messages allows the tests to work for | 16 # literal string comparision. Parsing the messages allows the tests to work for |
| 220 nosy: Chef, mary, richard | 220 nosy: Chef, mary, richard |
| 221 status: unread | 221 status: unread |
| 222 title: Testing... | 222 title: Testing... |
| 223 _______________________________________________________________________ | 223 _______________________________________________________________________ |
| 224 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 224 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 225 http://your.tracker.url.example/issue1 | 225 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 |
| 226 _______________________________________________________________________ | 226 _______________________________________________________________________ |
| 227 ''') | 227 ''') |
| 228 | 228 |
| 229 # BUG | 229 # BUG |
| 230 # def testMultipart(self): | 230 # def testMultipart(self): |
| 273 | 273 |
| 274 ---------- | 274 ---------- |
| 275 status: unread -> chatting | 275 status: unread -> chatting |
| 276 _______________________________________________________________________ | 276 _______________________________________________________________________ |
| 277 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 277 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 278 http://your.tracker.url.example/issue1 | 278 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 |
| 279 _______________________________________________________________________ | 279 _______________________________________________________________________ |
| 280 ''') | 280 ''') |
| 281 | 281 |
| 282 def testFollowup(self): | 282 def testFollowup(self): |
| 283 self.doNewIssue() | 283 self.doNewIssue() |
| 324 assignedto: -> mary | 324 assignedto: -> mary |
| 325 nosy: +john, mary | 325 nosy: +john, mary |
| 326 status: unread -> chatting | 326 status: unread -> chatting |
| 327 _______________________________________________________________________ | 327 _______________________________________________________________________ |
| 328 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 328 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 329 http://your.tracker.url.example/issue1 | 329 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 |
| 330 _______________________________________________________________________ | 330 _______________________________________________________________________ |
| 331 ''') | 331 ''') |
| 332 | 332 |
| 333 def testFollowupTitleMatch(self): | 333 def testFollowupTitleMatch(self): |
| 334 self.doNewIssue() | 334 self.doNewIssue() |
| 371 assignedto: -> mary | 371 assignedto: -> mary |
| 372 nosy: +john, mary | 372 nosy: +john, mary |
| 373 status: unread -> chatting | 373 status: unread -> chatting |
| 374 _______________________________________________________________________ | 374 _______________________________________________________________________ |
| 375 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 375 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 376 http://your.tracker.url.example/issue1 | 376 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 |
| 377 _______________________________________________________________________ | 377 _______________________________________________________________________ |
| 378 ''') | 378 ''') |
| 379 | 379 |
| 380 def testFollowupNosyAuthor(self): | 380 def testFollowupNosyAuthor(self): |
| 381 self.doNewIssue() | 381 self.doNewIssue() |
| 418 ---------- | 418 ---------- |
| 419 nosy: +john | 419 nosy: +john |
| 420 status: unread -> chatting | 420 status: unread -> chatting |
| 421 _______________________________________________________________________ | 421 _______________________________________________________________________ |
| 422 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 422 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 423 http://your.tracker.url.example/issue1 | 423 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 |
| 424 _______________________________________________________________________ | 424 _______________________________________________________________________ |
| 425 | 425 |
| 426 ''') | 426 ''') |
| 427 | 427 |
| 428 def testFollowupNosyRecipients(self): | 428 def testFollowupNosyRecipients(self): |
| 467 ---------- | 467 ---------- |
| 468 nosy: +john | 468 nosy: +john |
| 469 status: unread -> chatting | 469 status: unread -> chatting |
| 470 _______________________________________________________________________ | 470 _______________________________________________________________________ |
| 471 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 471 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 472 http://your.tracker.url.example/issue1 | 472 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 |
| 473 _______________________________________________________________________ | 473 _______________________________________________________________________ |
| 474 | 474 |
| 475 ''') | 475 ''') |
| 476 | 476 |
| 477 def testFollowupNosyAuthorAndCopy(self): | 477 def testFollowupNosyAuthorAndCopy(self): |
| 516 ---------- | 516 ---------- |
| 517 nosy: +john | 517 nosy: +john |
| 518 status: unread -> chatting | 518 status: unread -> chatting |
| 519 _______________________________________________________________________ | 519 _______________________________________________________________________ |
| 520 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 520 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 521 http://your.tracker.url.example/issue1 | 521 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 |
| 522 _______________________________________________________________________ | 522 _______________________________________________________________________ |
| 523 | 523 |
| 524 ''') | 524 ''') |
| 525 | 525 |
| 526 def testFollowupNoNosyAuthor(self): | 526 def testFollowupNoNosyAuthor(self): |
| 563 | 563 |
| 564 ---------- | 564 ---------- |
| 565 status: unread -> chatting | 565 status: unread -> chatting |
| 566 _______________________________________________________________________ | 566 _______________________________________________________________________ |
| 567 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 567 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 568 http://your.tracker.url.example/issue1 | 568 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 |
| 569 _______________________________________________________________________ | 569 _______________________________________________________________________ |
| 570 | 570 |
| 571 ''') | 571 ''') |
| 572 | 572 |
| 573 def testFollowupNoNosyRecipients(self): | 573 def testFollowupNoNosyRecipients(self): |
| 611 | 611 |
| 612 ---------- | 612 ---------- |
| 613 status: unread -> chatting | 613 status: unread -> chatting |
| 614 _______________________________________________________________________ | 614 _______________________________________________________________________ |
| 615 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 615 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 616 http://your.tracker.url.example/issue1 | 616 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 |
| 617 _______________________________________________________________________ | 617 _______________________________________________________________________ |
| 618 | 618 |
| 619 ''') | 619 ''') |
| 620 | 620 |
| 621 def testNosyRemove(self): | 621 def testNosyRemove(self): |
| 719 | 719 |
| 720 ---------- | 720 ---------- |
| 721 status: unread -> chatting | 721 status: unread -> chatting |
| 722 _______________________________________________________________________ | 722 _______________________________________________________________________ |
| 723 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 723 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 724 http://your.tracker.url.example/issue1 | 724 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 |
| 725 _______________________________________________________________________ | 725 _______________________________________________________________________ |
| 726 ''') | 726 ''') |
| 727 | 727 |
| 728 | 728 |
| 729 def testMultipartEnc01(self): | 729 def testMultipartEnc01(self): |
| 774 | 774 |
| 775 ---------- | 775 ---------- |
| 776 status: unread -> chatting | 776 status: unread -> chatting |
| 777 _______________________________________________________________________ | 777 _______________________________________________________________________ |
| 778 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 778 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 779 http://your.tracker.url.example/issue1 | 779 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 |
| 780 _______________________________________________________________________ | 780 _______________________________________________________________________ |
| 781 ''') | 781 ''') |
| 782 | 782 |
| 783 def testFollowupStupidQuoting(self): | 783 def testFollowupStupidQuoting(self): |
| 784 self.doNewIssue() | 784 self.doNewIssue() |
| 820 | 820 |
| 821 ---------- | 821 ---------- |
| 822 status: unread -> chatting | 822 status: unread -> chatting |
| 823 _______________________________________________________________________ | 823 _______________________________________________________________________ |
| 824 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 824 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 825 http://your.tracker.url.example/issue1 | 825 http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1 |
| 826 _______________________________________________________________________ | 826 _______________________________________________________________________ |
| 827 ''') | 827 ''') |
| 828 | 828 |
| 829 def testEmailQuoting(self): | 829 def testEmailQuoting(self): |
| 830 self.instance.config.EMAIL_KEEP_QUOTED_TEXT = 'no' | 830 self.instance.config.EMAIL_KEEP_QUOTED_TEXT = 'no' |
