Mercurial > p > roundup > code
comparison test/test_mailgw.py @ 1322:c0546b95aad1
finished off handling of retired flag in filter() [SF#635260]
(bugfix in mailgw unit tests for x-roundup-loop too)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 10 Dec 2002 00:46:55 +0000 |
| parents | 3758a5af985f |
| children | d008233b22aa |
comparison
equal
deleted
inserted
replaced
| 1321:328d68db2ef8 | 1322:c0546b95aad1 |
|---|---|
| 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.34 2002-12-10 00:11:16 richard Exp $ | 11 # $Id: test_mailgw.py,v 1.35 2002-12-10 00:46:55 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 |
| 209 From: "Bork, Chef" <issue_tracker@your.tracker.email.domain.example> | 209 From: "Bork, Chef" <issue_tracker@your.tracker.email.domain.example> |
| 210 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 210 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 211 MIME-Version: 1.0 | 211 MIME-Version: 1.0 |
| 212 Message-Id: <dummy_test_message_id> | 212 Message-Id: <dummy_test_message_id> |
| 213 X-Roundup-Name: Roundup issue tracker | 213 X-Roundup-Name: Roundup issue tracker |
| 214 X-Roundup-Loop: hello | |
| 214 Content-Transfer-Encoding: quoted-printable | 215 Content-Transfer-Encoding: quoted-printable |
| 215 | 216 |
| 216 | 217 |
| 217 New submission from Bork, Chef <chef@bork.bork.bork>: | 218 New submission from Bork, Chef <chef@bork.bork.bork>: |
| 218 | 219 |
| 265 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 266 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 266 MIME-Version: 1.0 | 267 MIME-Version: 1.0 |
| 267 Message-Id: <followup_dummy_id> | 268 Message-Id: <followup_dummy_id> |
| 268 In-Reply-To: <dummy_test_message_id> | 269 In-Reply-To: <dummy_test_message_id> |
| 269 X-Roundup-Name: Roundup issue tracker | 270 X-Roundup-Name: Roundup issue tracker |
| 271 X-Roundup-Loop: hello | |
| 270 Content-Transfer-Encoding: quoted-printable | 272 Content-Transfer-Encoding: quoted-printable |
| 271 | 273 |
| 272 | 274 |
| 273 Contrary, Mary <mary@test> added the comment: | 275 Contrary, Mary <mary@test> added the comment: |
| 274 | 276 |
| 313 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 315 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 314 MIME-Version: 1.0 | 316 MIME-Version: 1.0 |
| 315 Message-Id: <followup_dummy_id> | 317 Message-Id: <followup_dummy_id> |
| 316 In-Reply-To: <dummy_test_message_id> | 318 In-Reply-To: <dummy_test_message_id> |
| 317 X-Roundup-Name: Roundup issue tracker | 319 X-Roundup-Name: Roundup issue tracker |
| 320 X-Roundup-Loop: hello | |
| 318 Content-Transfer-Encoding: quoted-printable | 321 Content-Transfer-Encoding: quoted-printable |
| 319 | 322 |
| 320 | 323 |
| 321 richard <richard@test> added the comment: | 324 richard <richard@test> added the comment: |
| 322 | 325 |
| 359 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 362 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 360 MIME-Version: 1.0 | 363 MIME-Version: 1.0 |
| 361 Message-Id: <followup_dummy_id> | 364 Message-Id: <followup_dummy_id> |
| 362 In-Reply-To: <dummy_test_message_id> | 365 In-Reply-To: <dummy_test_message_id> |
| 363 X-Roundup-Name: Roundup issue tracker | 366 X-Roundup-Name: Roundup issue tracker |
| 367 X-Roundup-Loop: hello | |
| 364 Content-Transfer-Encoding: quoted-printable | 368 Content-Transfer-Encoding: quoted-printable |
| 365 | 369 |
| 366 | 370 |
| 367 richard <richard@test> added the comment: | 371 richard <richard@test> added the comment: |
| 368 | 372 |
| 406 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 410 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 407 MIME-Version: 1.0 | 411 MIME-Version: 1.0 |
| 408 Message-Id: <followup_dummy_id> | 412 Message-Id: <followup_dummy_id> |
| 409 In-Reply-To: <dummy_test_message_id> | 413 In-Reply-To: <dummy_test_message_id> |
| 410 X-Roundup-Name: Roundup issue tracker | 414 X-Roundup-Name: Roundup issue tracker |
| 415 X-Roundup-Loop: hello | |
| 411 Content-Transfer-Encoding: quoted-printable | 416 Content-Transfer-Encoding: quoted-printable |
| 412 | 417 |
| 413 | 418 |
| 414 John Doe <john@test> added the comment: | 419 John Doe <john@test> added the comment: |
| 415 | 420 |
| 454 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 459 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 455 MIME-Version: 1.0 | 460 MIME-Version: 1.0 |
| 456 Message-Id: <followup_dummy_id> | 461 Message-Id: <followup_dummy_id> |
| 457 In-Reply-To: <dummy_test_message_id> | 462 In-Reply-To: <dummy_test_message_id> |
| 458 X-Roundup-Name: Roundup issue tracker | 463 X-Roundup-Name: Roundup issue tracker |
| 464 X-Roundup-Loop: hello | |
| 459 Content-Transfer-Encoding: quoted-printable | 465 Content-Transfer-Encoding: quoted-printable |
| 460 | 466 |
| 461 | 467 |
| 462 richard <richard@test> added the comment: | 468 richard <richard@test> added the comment: |
| 463 | 469 |
| 502 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 508 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 503 MIME-Version: 1.0 | 509 MIME-Version: 1.0 |
| 504 Message-Id: <followup_dummy_id> | 510 Message-Id: <followup_dummy_id> |
| 505 In-Reply-To: <dummy_test_message_id> | 511 In-Reply-To: <dummy_test_message_id> |
| 506 X-Roundup-Name: Roundup issue tracker | 512 X-Roundup-Name: Roundup issue tracker |
| 513 X-Roundup-Loop: hello | |
| 507 Content-Transfer-Encoding: quoted-printable | 514 Content-Transfer-Encoding: quoted-printable |
| 508 | 515 |
| 509 | 516 |
| 510 John Doe <john@test> added the comment: | 517 John Doe <john@test> added the comment: |
| 511 | 518 |
| 549 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 556 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 550 MIME-Version: 1.0 | 557 MIME-Version: 1.0 |
| 551 Message-Id: <followup_dummy_id> | 558 Message-Id: <followup_dummy_id> |
| 552 In-Reply-To: <dummy_test_message_id> | 559 In-Reply-To: <dummy_test_message_id> |
| 553 X-Roundup-Name: Roundup issue tracker | 560 X-Roundup-Name: Roundup issue tracker |
| 561 X-Roundup-Loop: hello | |
| 554 Content-Transfer-Encoding: quoted-printable | 562 Content-Transfer-Encoding: quoted-printable |
| 555 | 563 |
| 556 | 564 |
| 557 John Doe <john@test> added the comment: | 565 John Doe <john@test> added the comment: |
| 558 | 566 |
| 596 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 604 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 597 MIME-Version: 1.0 | 605 MIME-Version: 1.0 |
| 598 Message-Id: <followup_dummy_id> | 606 Message-Id: <followup_dummy_id> |
| 599 In-Reply-To: <dummy_test_message_id> | 607 In-Reply-To: <dummy_test_message_id> |
| 600 X-Roundup-Name: Roundup issue tracker | 608 X-Roundup-Name: Roundup issue tracker |
| 609 X-Roundup-Loop: hello | |
| 601 Content-Transfer-Encoding: quoted-printable | 610 Content-Transfer-Encoding: quoted-printable |
| 602 | 611 |
| 603 | 612 |
| 604 richard <richard@test> added the comment: | 613 richard <richard@test> added the comment: |
| 605 | 614 |
| 704 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 713 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 705 MIME-Version: 1.0 | 714 MIME-Version: 1.0 |
| 706 Message-Id: <followup_dummy_id> | 715 Message-Id: <followup_dummy_id> |
| 707 In-Reply-To: <dummy_test_message_id> | 716 In-Reply-To: <dummy_test_message_id> |
| 708 X-Roundup-Name: Roundup issue tracker | 717 X-Roundup-Name: Roundup issue tracker |
| 718 X-Roundup-Loop: hello | |
| 709 Content-Transfer-Encoding: quoted-printable | 719 Content-Transfer-Encoding: quoted-printable |
| 710 | 720 |
| 711 | 721 |
| 712 Contrary, Mary <mary@test> added the comment: | 722 Contrary, Mary <mary@test> added the comment: |
| 713 | 723 |
| 758 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 768 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 759 MIME-Version: 1.0 | 769 MIME-Version: 1.0 |
| 760 Message-Id: <followup_dummy_id> | 770 Message-Id: <followup_dummy_id> |
| 761 In-Reply-To: <dummy_test_message_id> | 771 In-Reply-To: <dummy_test_message_id> |
| 762 X-Roundup-Name: Roundup issue tracker | 772 X-Roundup-Name: Roundup issue tracker |
| 773 X-Roundup-Loop: hello | |
| 763 Content-Transfer-Encoding: quoted-printable | 774 Content-Transfer-Encoding: quoted-printable |
| 764 | 775 |
| 765 | 776 |
| 766 Contrary, Mary <mary@test> added the comment: | 777 Contrary, Mary <mary@test> added the comment: |
| 767 | 778 |
| 802 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 813 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 803 MIME-Version: 1.0 | 814 MIME-Version: 1.0 |
| 804 Message-Id: <followup_dummy_id> | 815 Message-Id: <followup_dummy_id> |
| 805 In-Reply-To: <dummy_test_message_id> | 816 In-Reply-To: <dummy_test_message_id> |
| 806 X-Roundup-Name: Roundup issue tracker | 817 X-Roundup-Name: Roundup issue tracker |
| 818 X-Roundup-Loop: hello | |
| 807 Content-Transfer-Encoding: quoted-printable | 819 Content-Transfer-Encoding: quoted-printable |
| 808 | 820 |
| 809 | 821 |
| 810 richard <richard@test> added the comment: | 822 richard <richard@test> added the comment: |
| 811 | 823 |
