From: Barry Warsaw Date: Thu, 13 May 2004 23:13:24 +0000 (+0000) Subject: test_boundary_in_non_multipart(): Added a test for SF bug # 846938. X-Git-Tag: v2.3.4~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0a2ab8293d6e622e5d97eef4a14127897c52cf3b;p=thirdparty%2FPython%2Fcpython.git test_boundary_in_non_multipart(): Added a test for SF bug # 846938. --- diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py index 5c1095921492..dd2249fde7b6 100644 --- a/Lib/email/test/test_email.py +++ b/Lib/email/test/test_email.py @@ -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 + + + +----961284236552522269-- +''') + # Test some badly formatted messages