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

This commit is contained in:
Barry Warsaw 2004-05-13 23:17:04 +00:00
parent 61e5616d74
commit 2178a6d1a2
1 changed files with 15 additions and 0 deletions

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