From 2178a6d1a25bd5b3ad522244846984e30f7504e2 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 13 May 2004 23:17:04 +0000 Subject: test_boundary_in_non_multipart(): Added a test for SF bug # 846938. --- Lib/email/test/test_email.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py index 59163f4..0d7e79f 100644 --- a/Lib/email/test/test_email.py +++ b/Lib/email/test/test_email.py @@ -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 + + + +----961284236552522269-- +''') + # Test some badly formatted messages -- cgit v0.12