Mercurial > p > roundup > code
comparison test/test_mailgw.py @ 3974:ff089ebe95d1
remove duplicate Content-Type header from multipart_msg...
...and verify that regression test still runs,
thanks to Erik Forsberg for noticing.
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Fri, 11 Apr 2008 10:54:00 +0000 |
| parents | 85e52526a791 |
| children | b0bf39985f30 |
comparison
equal
deleted
inserted
replaced
| 3973:85cbaa50eba1 | 3974:ff089ebe95d1 |
|---|---|
| 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.93 2008-02-07 03:55:14 richard Exp $ | 11 # $Id: test_mailgw.py,v 1.94 2008-04-11 10:54:00 schlatterbeck 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 |
| 342 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 342 Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 343 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1> | 343 <http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1> |
| 344 _______________________________________________________________________ | 344 _______________________________________________________________________ |
| 345 ''') | 345 ''') |
| 346 | 346 |
| 347 multipart_msg = '''Content-Type: text/plain; | 347 multipart_msg = '''From: mary <mary@test.test> |
| 348 charset="iso-8859-1" | |
| 349 From: mary <mary@test.test> | |
| 350 To: issue_tracker@your.tracker.email.domain.example | 348 To: issue_tracker@your.tracker.email.domain.example |
| 351 Message-Id: <followup_dummy_id> | 349 Message-Id: <followup_dummy_id> |
| 352 In-Reply-To: <dummy_test_message_id> | 350 In-Reply-To: <dummy_test_message_id> |
| 353 Subject: [issue1] Testing... | 351 Subject: [issue1] Testing... |
| 354 Content-Type: multipart/mixed; boundary="bxyzzy" | 352 Content-Type: multipart/mixed; boundary="bxyzzy" |
