Commits

Barry Warsaw  committed 2d34585

test_boundary_in_non_multipart(): Added a test for SF bug # 846938.

  • Participants
  • Parent commits 16386cb
  • Branches 2.3

Comments (0)

Files changed (1)

File Lib/email/test/test_email.py

 --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--
+''')
+
 
 
 # Test some badly formatted messages