[Python-checkins] python/dist/src/Lib/email/test test_email.py, 1.62, 1.63

bwarsaw at users.sourceforge.net bwarsaw at users.sourceforge.net
Sun Oct 10 00:57:36 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/email/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20203

Modified Files:
	test_email.py 
Log Message:
test_missing_start_boundary(): A test for SF bug # 1030941.


Index: test_email.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/test/test_email.py,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- test_email.py	3 Oct 2004 03:16:18 -0000	1.62
+++ test_email.py	9 Oct 2004 22:57:33 -0000	1.63
@@ -1420,6 +1420,21 @@
         unless(isinstance(msg.defects[1],
                           Errors.MultipartInvariantViolationDefect))
 
+    def test_missing_start_boundary(self):
+        outer = self._msgobj('msg_42.txt')
+        # The message structure is:
+        #
+        # multipart/mixed
+        #    text/plain
+        #    message/rfc822
+        #        multipart/mixed [*]
+        #
+        # [*] This message is missing its start boundary
+        bad = outer.get_payload(1).get_payload(0)
+        self.assertEqual(len(bad.defects), 1)
+        self.failUnless(isinstance(bad.defects[0],
+                                   Errors.StartBoundaryNotFoundDefect))
+
 
 
 # Test RFC 2047 header encoding and decoding



More information about the Python-checkins mailing list