]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
test_boundary_in_non_multipart(): Added a test for SF bug # 846938.
authorBarry Warsaw <barry@python.org>
Thu, 13 May 2004 23:13:24 +0000 (23:13 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 13 May 2004 23:13:24 +0000 (23:13 +0000)
Lib/email/test/test_email.py

index 5c10959214923827950d6439b3d830a521385441..dd2249fde7b6328c8c9a2e5a85de1c90bba9b299 100644 (file)
@@ -1176,6 +1176,21 @@ hello world
 --BOUNDARY--
 ''')
 
+    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