mirror of
https://github.com/python/cpython.git
synced 2025-10-18 20:58:48 +00:00
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.
This commit is contained in:
parent
58fb61cce5
commit
470288c54e
1 changed files with 3 additions and 2 deletions
|
@ -47,6 +47,7 @@ class TestCrispinTorture(TortureBase):
|
||||||
# Mark Crispin's torture test from the SquirrelMail project
|
# Mark Crispin's torture test from the SquirrelMail project
|
||||||
def test_mondo_message(self):
|
def test_mondo_message(self):
|
||||||
eq = self.assertEqual
|
eq = self.assertEqual
|
||||||
|
neq = self.ndiffAssertEqual
|
||||||
msg = self._msgobj('crispin-torture.txt')
|
msg = self._msgobj('crispin-torture.txt')
|
||||||
payload = msg.get_payload()
|
payload = msg.get_payload()
|
||||||
eq(type(payload), ListType)
|
eq(type(payload), ListType)
|
||||||
|
@ -57,7 +58,7 @@ class TestCrispinTorture(TortureBase):
|
||||||
# dump its structure and compare it against the known structure.
|
# dump its structure and compare it against the known structure.
|
||||||
fp = StringIO()
|
fp = StringIO()
|
||||||
_structure(msg, fp=fp)
|
_structure(msg, fp=fp)
|
||||||
eq(fp.getvalue(), """\
|
neq(fp.getvalue(), """\
|
||||||
multipart/mixed
|
multipart/mixed
|
||||||
text/plain
|
text/plain
|
||||||
message/rfc822
|
message/rfc822
|
||||||
|
@ -100,7 +101,7 @@ multipart/mixed
|
||||||
message/rfc822
|
message/rfc822
|
||||||
multipart/mixed
|
multipart/mixed
|
||||||
application/postscript
|
application/postscript
|
||||||
binary
|
text/plain
|
||||||
message/rfc822
|
message/rfc822
|
||||||
multipart/mixed
|
multipart/mixed
|
||||||
text/plain
|
text/plain
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue