diff options
| author | Barry Warsaw <barry@python.org> | 2004-05-13 23:17:04 +0000 |
|---|---|---|
| committer | Barry Warsaw <barry@python.org> | 2004-05-13 23:17:04 +0000 |
| commit | 2178a6d1a25bd5b3ad522244846984e30f7504e2 (patch) | |
| tree | 3dce2a317afe7adab35f6f3aa1705194e1a19b79 /Lib/email/test | |
| parent | 61e5616d746811a763633c6fc71c2f35ba601915 (diff) | |
| download | cpython-git-2178a6d1a25bd5b3ad522244846984e30f7504e2.tar.gz | |
test_boundary_in_non_multipart(): Added a test for SF bug # 846938.
Diffstat (limited to 'Lib/email/test')
| -rw-r--r-- | Lib/email/test/test_email.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py index 59163f4fcc..0d7e79f98c 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 + +<html></html> + +----961284236552522269-- +''') + # Test some badly formatted messages |
