Mailing List Archive

python/dist/src/Lib/email/test test_email_torture.py,1.2,1.3
Update of /cvsroot/python/python/dist/src/Lib/email/test
In directory usw-pr-cvs1:/tmp/cvs-serv21245

Modified Files:
test_email_torture.py
Log Message:
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.


Index: test_email_torture.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/test/test_email_torture.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_email_torture.py 23 Jul 2002 20:35:58 -0000 1.2
--- test_email_torture.py 6 Sep 2002 03:41:27 -0000 1.3
***************
*** 48,51 ****
--- 48,52 ----
def test_mondo_message(self):
eq = self.assertEqual
+ neq = self.ndiffAssertEqual
msg = self._msgobj('crispin-torture.txt')
payload = msg.get_payload()
***************
*** 58,62 ****
fp = StringIO()
_structure(msg, fp=fp)
! eq(fp.getvalue(), """\
multipart/mixed
text/plain
--- 59,63 ----
fp = StringIO()
_structure(msg, fp=fp)
! neq(fp.getvalue(), """\
multipart/mixed
text/plain
***************
*** 101,105 ****
multipart/mixed
application/postscript
! binary
message/rfc822
multipart/mixed
--- 102,106 ----
multipart/mixed
application/postscript
! text/plain
message/rfc822
multipart/mixed