summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2002-09-06 03:41:27 (GMT)
committerBarry Warsaw <barry@python.org>2002-09-06 03:41:27 (GMT)
commit470288c54e9be66ac41638baabd14607448d8cd6 (patch)
tree1ccda3db862db074ed5551528950057d0146d33a
parent58fb61cce5f989ea4b3cc48ce104235b8eb5965d (diff)
downloadcpython-470288c54e9be66ac41638baabd14607448d8cd6.zip
cpython-470288c54e9be66ac41638baabd14607448d8cd6.tar.gz
cpython-470288c54e9be66ac41638baabd14607448d8cd6.tar.bz2
test_mondo_message(): "binary" is not a legal content type, so with
the previous RFC 2045, $5.2 repair to get_content_type() this subpart's type will now be text/plain.
-rw-r--r--Lib/email/test/test_email_torture.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/email/test/test_email_torture.py b/Lib/email/test/test_email_torture.py
index 7a0bd46..1bff09c 100644
--- a/Lib/email/test/test_email_torture.py
+++ b/Lib/email/test/test_email_torture.py
@@ -47,6 +47,7 @@ class TestCrispinTorture(TortureBase):
# Mark Crispin's torture test from the SquirrelMail project
def test_mondo_message(self):
eq = self.assertEqual
+ neq = self.ndiffAssertEqual
msg = self._msgobj('crispin-torture.txt')
payload = msg.get_payload()
eq(type(payload), ListType)
@@ -57,7 +58,7 @@ class TestCrispinTorture(TortureBase):
# dump its structure and compare it against the known structure.
fp = StringIO()
_structure(msg, fp=fp)
- eq(fp.getvalue(), """\
+ neq(fp.getvalue(), """\
multipart/mixed
text/plain
message/rfc822
@@ -100,7 +101,7 @@ multipart/mixed
message/rfc822
multipart/mixed
application/postscript
- binary
+ text/plain
message/rfc822
multipart/mixed
text/plain