]> granicus.if.org Git - python/commitdiff
test_boundary_in_non_multipart(): Added a test for SF bug # 846938.
authorBarry Warsaw <barry@python.org>
Thu, 13 May 2004 23:17:04 +0000 (23:17 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 13 May 2004 23:17:04 +0000 (23:17 +0000)
Lib/email/test/test_email.py

index 59163f4fccd09dfd1165ea2109f01825cb30a784..0d7e79f98c2a711e864fc156b5c6d89d650e5a7a 100644 (file)
@@ -1361,6 +1361,21 @@ multipart/mixed
     text/plain
 """)
 
+    def test_boundary_in_non_multipart(self):
+        msg = self._msgobj('msg_40.txt')
+        self.assertEqual(msg.as_string(), '''\
+MIME-Version: 1.0
+Content-Type: text/html; boundary="--961284236552522269"
+
+----961284236552522269
+Content-Type: text/html;
+Content-Transfer-Encoding: 7Bit
+
+<html></html>
+
+----961284236552522269--
+''')
+
 
 \f
 # Test some badly formatted messages