comparison test/test_mailgw.py @ 3966:85e52526a791

mailgw test updates
author Richard Jones <richard@users.sourceforge.net>
date Thu, 07 Feb 2008 03:55:14 +0000
parents be72bc5ab6ee
children ff089ebe95d1
comparison
equal deleted inserted replaced
3965:248c3a7bc94d 3966:85e52526a791
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.92 2007-11-14 16:19:41 schlatterbeck Exp $ 11 # $Id: test_mailgw.py,v 1.93 2008-02-07 03:55:14 richard Exp $
12 12
13 # TODO: test bcc 13 # TODO: test bcc
14 14
15 import unittest, tempfile, os, shutil, errno, imp, sys, difflib, rfc822, time 15 import unittest, tempfile, os, shutil, errno, imp, sys, difflib, rfc822, time
16 16
48 if key.lower() == 'x-roundup-version': 48 if key.lower() == 'x-roundup-version':
49 # version changes constantly, so handle it specially 49 # version changes constantly, so handle it specially
50 if new[key] != __version__: 50 if new[key] != __version__:
51 res.append(' %s: %s != %s' % (key, __version__, 51 res.append(' %s: %s != %s' % (key, __version__,
52 new[key])) 52 new[key]))
53 elif new[key] != old[key]: 53 elif new.get(key, '') != old.get(key, ''):
54 res.append(' %s: %s != %s' % (key, old[key], new[key])) 54 res.append(' %s: %s != %s' % (key, old.get(key, ''),
55 new.get(key, '')))
55 56
56 body_diff = self.compareStrings(new.fp.read(), old.fp.read()) 57 body_diff = self.compareStrings(new.fp.read(), old.fp.read())
57 if body_diff: 58 if body_diff:
58 res.append('') 59 res.append('')
59 res.extend(body_diff) 60 res.extend(body_diff)
236 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 237 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
237 MIME-Version: 1.0 238 MIME-Version: 1.0
238 Message-Id: <dummy_test_message_id> 239 Message-Id: <dummy_test_message_id>
239 X-Roundup-Name: Roundup issue tracker 240 X-Roundup-Name: Roundup issue tracker
240 X-Roundup-Loop: hello 241 X-Roundup-Loop: hello
242 X-Roundup-Issue-Status: unread
241 Content-Transfer-Encoding: quoted-printable 243 Content-Transfer-Encoding: quoted-printable
242 244
243 245
244 New submission from Bork, Chef <chef@bork.bork.bork>: 246 New submission from Bork, Chef <chef@bork.bork.bork>:
245 247
279 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 281 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
280 MIME-Version: 1.0 282 MIME-Version: 1.0
281 Message-Id: <dummy_test_message_id> 283 Message-Id: <dummy_test_message_id>
282 X-Roundup-Name: Roundup issue tracker 284 X-Roundup-Name: Roundup issue tracker
283 X-Roundup-Loop: hello 285 X-Roundup-Loop: hello
286 X-Roundup-Issue-Status: unread
284 Content-Transfer-Encoding: quoted-printable 287 Content-Transfer-Encoding: quoted-printable
285 288
286 This is a test submission of a new issue. 289 This is a test submission of a new issue.
287 290
288 ---------- 291 ----------
319 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 322 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
320 MIME-Version: 1.0 323 MIME-Version: 1.0
321 Message-Id: <dummy_test_message_id> 324 Message-Id: <dummy_test_message_id>
322 X-Roundup-Name: Roundup issue tracker 325 X-Roundup-Name: Roundup issue tracker
323 X-Roundup-Loop: hello 326 X-Roundup-Loop: hello
327 X-Roundup-Issue-Status: unread
324 Content-Transfer-Encoding: quoted-printable 328 Content-Transfer-Encoding: quoted-printable
325 329
326 New submission from Bork, Chef: 330 New submission from Bork, Chef:
327 331
328 This is a test submission of a new issue. 332 This is a test submission of a new issue.
464 MIME-Version: 1.0 468 MIME-Version: 1.0
465 Message-Id: <followup_dummy_id> 469 Message-Id: <followup_dummy_id>
466 In-Reply-To: <dummy_test_message_id> 470 In-Reply-To: <dummy_test_message_id>
467 X-Roundup-Name: Roundup issue tracker 471 X-Roundup-Name: Roundup issue tracker
468 X-Roundup-Loop: hello 472 X-Roundup-Loop: hello
473 X-Roundup-Issue-Status: chatting
469 Content-Transfer-Encoding: quoted-printable 474 Content-Transfer-Encoding: quoted-printable
470 475
471 476
472 Contrary, Mary <mary@test.test> added the comment: 477 Contrary, Mary <mary@test.test> added the comment:
473 478
511 MIME-Version: 1.0 516 MIME-Version: 1.0
512 Message-Id: <followup_dummy_id> 517 Message-Id: <followup_dummy_id>
513 In-Reply-To: <dummy_test_message_id> 518 In-Reply-To: <dummy_test_message_id>
514 X-Roundup-Name: Roundup issue tracker 519 X-Roundup-Name: Roundup issue tracker
515 X-Roundup-Loop: hello 520 X-Roundup-Loop: hello
521 X-Roundup-Issue-Status: chatting
516 Content-Transfer-Encoding: quoted-printable 522 Content-Transfer-Encoding: quoted-printable
517 523
518 524
519 richard <richard@test.test> added the comment: 525 richard <richard@test.test> added the comment:
520 526
554 Subject: [issue1] Testing... 560 Subject: [issue1] Testing...
555 To: chef@bork.bork.bork, richard@test.test 561 To: chef@bork.bork.bork, richard@test.test
556 From: "Bork, Chef" <issue_tracker@your.tracker.email.domain.example> 562 From: "Bork, Chef" <issue_tracker@your.tracker.email.domain.example>
557 X-Roundup-Name: Roundup issue tracker 563 X-Roundup-Name: Roundup issue tracker
558 X-Roundup-Loop: hello 564 X-Roundup-Loop: hello
565 X-Roundup-Issue-Status: unread
559 X-Roundup-Version: 1.3.3 566 X-Roundup-Version: 1.3.3
560 MIME-Version: 1.0 567 MIME-Version: 1.0
561 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 568 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
562 Content-Transfer-Encoding: quoted-printable 569 Content-Transfer-Encoding: quoted-printable
563 570
600 MIME-Version: 1.0 607 MIME-Version: 1.0
601 Message-Id: <followup_dummy_id> 608 Message-Id: <followup_dummy_id>
602 In-Reply-To: <dummy_test_message_id> 609 In-Reply-To: <dummy_test_message_id>
603 X-Roundup-Name: Roundup issue tracker 610 X-Roundup-Name: Roundup issue tracker
604 X-Roundup-Loop: hello 611 X-Roundup-Loop: hello
612 X-Roundup-Issue-Status: chatting
605 Content-Transfer-Encoding: quoted-printable 613 Content-Transfer-Encoding: quoted-printable
606 614
607 615
608 richard <richard@test.test> added the comment: 616 richard <richard@test.test> added the comment:
609 617
709 MIME-Version: 1.0 717 MIME-Version: 1.0
710 Message-Id: <followup_dummy_id> 718 Message-Id: <followup_dummy_id>
711 In-Reply-To: <dummy_test_message_id> 719 In-Reply-To: <dummy_test_message_id>
712 X-Roundup-Name: Roundup issue tracker 720 X-Roundup-Name: Roundup issue tracker
713 X-Roundup-Loop: hello 721 X-Roundup-Loop: hello
722 X-Roundup-Issue-Status: chatting
714 Content-Transfer-Encoding: quoted-printable 723 Content-Transfer-Encoding: quoted-printable
715 724
716 725
717 John Doe <john@test.test> added the comment: 726 John Doe <john@test.test> added the comment:
718 727
754 MIME-Version: 1.0 763 MIME-Version: 1.0
755 Message-Id: <followup_dummy_id> 764 Message-Id: <followup_dummy_id>
756 In-Reply-To: <dummy_test_message_id> 765 In-Reply-To: <dummy_test_message_id>
757 X-Roundup-Name: Roundup issue tracker 766 X-Roundup-Name: Roundup issue tracker
758 X-Roundup-Loop: hello 767 X-Roundup-Loop: hello
768 X-Roundup-Issue-Status: chatting
759 Content-Transfer-Encoding: quoted-printable 769 Content-Transfer-Encoding: quoted-printable
760 770
761 771
762 richard <richard@test.test> added the comment: 772 richard <richard@test.test> added the comment:
763 773
799 MIME-Version: 1.0 809 MIME-Version: 1.0
800 Message-Id: <followup_dummy_id> 810 Message-Id: <followup_dummy_id>
801 In-Reply-To: <dummy_test_message_id> 811 In-Reply-To: <dummy_test_message_id>
802 X-Roundup-Name: Roundup issue tracker 812 X-Roundup-Name: Roundup issue tracker
803 X-Roundup-Loop: hello 813 X-Roundup-Loop: hello
814 X-Roundup-Issue-Status: chatting
804 Content-Transfer-Encoding: quoted-printable 815 Content-Transfer-Encoding: quoted-printable
805 816
806 817
807 John Doe <john@test.test> added the comment: 818 John Doe <john@test.test> added the comment:
808 819
843 MIME-Version: 1.0 854 MIME-Version: 1.0
844 Message-Id: <followup_dummy_id> 855 Message-Id: <followup_dummy_id>
845 In-Reply-To: <dummy_test_message_id> 856 In-Reply-To: <dummy_test_message_id>
846 X-Roundup-Name: Roundup issue tracker 857 X-Roundup-Name: Roundup issue tracker
847 X-Roundup-Loop: hello 858 X-Roundup-Loop: hello
859 X-Roundup-Issue-Status: chatting
848 Content-Transfer-Encoding: quoted-printable 860 Content-Transfer-Encoding: quoted-printable
849 861
850 862
851 John Doe <john@test.test> added the comment: 863 John Doe <john@test.test> added the comment:
852 864
887 MIME-Version: 1.0 899 MIME-Version: 1.0
888 Message-Id: <followup_dummy_id> 900 Message-Id: <followup_dummy_id>
889 In-Reply-To: <dummy_test_message_id> 901 In-Reply-To: <dummy_test_message_id>
890 X-Roundup-Name: Roundup issue tracker 902 X-Roundup-Name: Roundup issue tracker
891 X-Roundup-Loop: hello 903 X-Roundup-Loop: hello
904 X-Roundup-Issue-Status: chatting
892 Content-Transfer-Encoding: quoted-printable 905 Content-Transfer-Encoding: quoted-printable
893 906
894 907
895 richard <richard@test.test> added the comment: 908 richard <richard@test.test> added the comment:
896 909
1067 MIME-Version: 1.0 1080 MIME-Version: 1.0
1068 Message-Id: <followup_dummy_id> 1081 Message-Id: <followup_dummy_id>
1069 In-Reply-To: <dummy_test_message_id> 1082 In-Reply-To: <dummy_test_message_id>
1070 X-Roundup-Name: Roundup issue tracker 1083 X-Roundup-Name: Roundup issue tracker
1071 X-Roundup-Loop: hello 1084 X-Roundup-Loop: hello
1085 X-Roundup-Issue-Status: chatting
1072 Content-Transfer-Encoding: quoted-printable 1086 Content-Transfer-Encoding: quoted-printable
1073 1087
1074 1088
1075 Contrary, Mary <mary@test.test> added the comment: 1089 Contrary, Mary <mary@test.test> added the comment:
1076 1090
1120 MIME-Version: 1.0 1134 MIME-Version: 1.0
1121 Message-Id: <followup_dummy_id> 1135 Message-Id: <followup_dummy_id>
1122 In-Reply-To: <dummy_test_message_id> 1136 In-Reply-To: <dummy_test_message_id>
1123 X-Roundup-Name: Roundup issue tracker 1137 X-Roundup-Name: Roundup issue tracker
1124 X-Roundup-Loop: hello 1138 X-Roundup-Loop: hello
1139 X-Roundup-Issue-Status: chatting
1125 Content-Transfer-Encoding: quoted-printable 1140 Content-Transfer-Encoding: quoted-printable
1126 1141
1127 1142
1128 Contrary, Mary <mary@test.test> added the comment: 1143 Contrary, Mary <mary@test.test> added the comment:
1129 1144
1196 MIME-Version: 1.0 1211 MIME-Version: 1.0
1197 Message-Id: <followup_dummy_id> 1212 Message-Id: <followup_dummy_id>
1198 In-Reply-To: <dummy_test_message_id> 1213 In-Reply-To: <dummy_test_message_id>
1199 X-Roundup-Name: Roundup issue tracker 1214 X-Roundup-Name: Roundup issue tracker
1200 X-Roundup-Loop: hello 1215 X-Roundup-Loop: hello
1216 X-Roundup-Issue-Status: chatting
1201 Content-Transfer-Encoding: quoted-printable 1217 Content-Transfer-Encoding: quoted-printable
1202 1218
1203 1219
1204 richard <richard@test.test> added the comment: 1220 richard <richard@test.test> added the comment:
1205 1221

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