diff options
author | Barry Warsaw <barry@python.org> | 2004-10-09 22:57:33 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2004-10-09 22:57:33 (GMT) |
commit | 83f1a1b1f732d6489c322435b72f59db5de2716f (patch) | |
tree | 5dfefce66d99a5723e02b3d38dbec5ee6a4996ee /Lib/email/test | |
parent | f9becec8cd989743aeb22d02a0ededddeecc89a6 (diff) | |
download | cpython-83f1a1b1f732d6489c322435b72f59db5de2716f.zip cpython-83f1a1b1f732d6489c322435b72f59db5de2716f.tar.gz cpython-83f1a1b1f732d6489c322435b72f59db5de2716f.tar.bz2 |
test_missing_start_boundary(): A test for SF bug # 1030941.
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 a55ef5c..f2aa8d7 100644 --- a/Lib/email/test/test_email.py +++ b/Lib/email/test/test_email.py @@ -1420,6 +1420,21 @@ counter to RFC 2822, there's no separating newline here unless(isinstance(msg.defects[1], Errors.MultipartInvariantViolationDefect)) + def test_missing_start_boundary(self): + outer = self._msgobj('msg_42.txt') + # The message structure is: + # + # multipart/mixed + # text/plain + # message/rfc822 + # multipart/mixed [*] + # + # [*] This message is missing its start boundary + bad = outer.get_payload(1).get_payload(0) + self.assertEqual(len(bad.defects), 1) + self.failUnless(isinstance(bad.defects[0], + Errors.StartBoundaryNotFoundDefect)) + # Test RFC 2047 header encoding and decoding |