comparison test/test_mailgw.py @ 2172:cf7941a669d6 maint-0.6

fix mail tests
author Richard Jones <richard@users.sourceforge.net>
date Thu, 01 Apr 2004 00:07:35 +0000
parents ea1afeb64b45
children 340497d2381e
comparison
equal deleted inserted replaced
2171:64f8d2747152 2172:cf7941a669d6
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.46 2003-05-06 21:49:20 kedder Exp $ 11 # $Id: test_mailgw.py,v 1.46.2.1 2004-04-01 00:07:35 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
237 assignedto: richard 237 assignedto: richard
238 messages: 1 238 messages: 1
239 nosy: Chef, mary, richard 239 nosy: Chef, mary, richard
240 status: unread 240 status: unread
241 title: Testing... 241 title: Testing...
242
242 _______________________________________________________________________ 243 _______________________________________________________________________
243 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 244 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
244 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1> 245 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
245 _______________________________________________________________________ 246 _______________________________________________________________________
246 ''') 247 ''')
289 290
290 This is a second followup 291 This is a second followup
291 292
292 ---------- 293 ----------
293 status: unread -> chatting 294 status: unread -> chatting
295
294 _______________________________________________________________________ 296 _______________________________________________________________________
295 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 297 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
296 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1> 298 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
297 _______________________________________________________________________ 299 _______________________________________________________________________
298 ''') 300 ''')
339 341
340 ---------- 342 ----------
341 assignedto: -> mary 343 assignedto: -> mary
342 nosy: +john, mary 344 nosy: +john, mary
343 status: unread -> chatting 345 status: unread -> chatting
346
344 _______________________________________________________________________ 347 _______________________________________________________________________
345 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 348 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
346 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1> 349 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
347 _______________________________________________________________________ 350 _______________________________________________________________________
348 ''') 351 ''')
385 388
386 ---------- 389 ----------
387 assignedto: -> mary 390 assignedto: -> mary
388 nosy: +john, mary 391 nosy: +john, mary
389 status: unread -> chatting 392 status: unread -> chatting
393
390 _______________________________________________________________________ 394 _______________________________________________________________________
391 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 395 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
392 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1> 396 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
393 _______________________________________________________________________ 397 _______________________________________________________________________
394 ''') 398 ''')
431 This is a followup 435 This is a followup
432 436
433 ---------- 437 ----------
434 nosy: +john 438 nosy: +john
435 status: unread -> chatting 439 status: unread -> chatting
440
436 _______________________________________________________________________ 441 _______________________________________________________________________
437 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 442 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
438 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1> 443 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
439 _______________________________________________________________________ 444 _______________________________________________________________________
440 445
479 This is a followup 484 This is a followup
480 485
481 ---------- 486 ----------
482 nosy: +john 487 nosy: +john
483 status: unread -> chatting 488 status: unread -> chatting
489
484 _______________________________________________________________________ 490 _______________________________________________________________________
485 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 491 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
486 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1> 492 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
487 _______________________________________________________________________ 493 _______________________________________________________________________
488 494
527 This is a followup 533 This is a followup
528 534
529 ---------- 535 ----------
530 nosy: +john 536 nosy: +john
531 status: unread -> chatting 537 status: unread -> chatting
538
532 _______________________________________________________________________ 539 _______________________________________________________________________
533 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 540 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
534 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1> 541 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
535 _______________________________________________________________________ 542 _______________________________________________________________________
536 543
573 580
574 This is a followup 581 This is a followup
575 582
576 ---------- 583 ----------
577 status: unread -> chatting 584 status: unread -> chatting
585
578 _______________________________________________________________________ 586 _______________________________________________________________________
579 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 587 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
580 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1> 588 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
581 _______________________________________________________________________ 589 _______________________________________________________________________
582 590
620 628
621 This is a followup 629 This is a followup
622 630
623 ---------- 631 ----------
624 status: unread -> chatting 632 status: unread -> chatting
633
625 _______________________________________________________________________ 634 _______________________________________________________________________
626 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 635 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
627 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1> 636 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
628 _______________________________________________________________________ 637 _______________________________________________________________________
629 638
750 759
751 A message with encoding (encoded oe =C3=B6) 760 A message with encoding (encoded oe =C3=B6)
752 761
753 ---------- 762 ----------
754 status: unread -> chatting 763 status: unread -> chatting
764
755 _______________________________________________________________________ 765 _______________________________________________________________________
756 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 766 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
757 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1> 767 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
758 _______________________________________________________________________ 768 _______________________________________________________________________
759 ''') 769 ''')
805 815
806 A message with first part encoded (encoded oe =C3=B6) 816 A message with first part encoded (encoded oe =C3=B6)
807 817
808 ---------- 818 ----------
809 status: unread -> chatting 819 status: unread -> chatting
820
810 _______________________________________________________________________ 821 _______________________________________________________________________
811 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 822 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
812 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1> 823 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
813 _______________________________________________________________________ 824 _______________________________________________________________________
814 ''') 825 ''')
885 896
886 This is a followup 897 This is a followup
887 898
888 ---------- 899 ----------
889 status: unread -> chatting 900 status: unread -> chatting
901
890 _______________________________________________________________________ 902 _______________________________________________________________________
891 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> 903 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example>
892 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1> 904 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1>
893 _______________________________________________________________________ 905 _______________________________________________________________________
894 ''') 906 ''')

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