Kaydet (Commit) 2178a6d1 authored tarafından Barry Warsaw's avatar Barry Warsaw

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

üst 61e5616d
...@@ -1361,6 +1361,21 @@ multipart/mixed ...@@ -1361,6 +1361,21 @@ multipart/mixed
text/plain 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 # Test some badly formatted messages
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment