summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2002-06-29 15:23:39 (GMT)
committerBarry Warsaw <barry@python.org>2002-06-29 15:23:39 (GMT)
commit19698174866b8c03848b6ca3a7ea9ce7f0133b91 (patch)
treeff3027664cf7a2fa86feb47edc33f60412f85b6d
parent9546e7972cd7fafa7da597cd433c6a59a3198ad8 (diff)
downloadcpython-19698174866b8c03848b6ca3a7ea9ce7f0133b91.zip
cpython-19698174866b8c03848b6ca3a7ea9ce7f0133b91.tar.gz
cpython-19698174866b8c03848b6ca3a7ea9ce7f0133b91.tar.bz2
Another test of long headers.
-rw-r--r--Lib/test/data/msg_27.txt15
-rw-r--r--Lib/test/test_email.py4
2 files changed, 19 insertions, 0 deletions
diff --git a/Lib/test/data/msg_27.txt b/Lib/test/data/msg_27.txt
new file mode 100644
index 0000000..d019176
--- /dev/null
+++ b/Lib/test/data/msg_27.txt
@@ -0,0 +1,15 @@
+Return-Path: <aperson@dom.ain>
+Received: by mail.dom.ain (Postfix, from userid 889)
+ id B9D0AD35DB; Tue, 4 Jun 2002 21:46:59 -0400 (EDT)
+Message-ID: <15613.28051.707126.569693@dom.ain>
+Date: Tue, 4 Jun 2002 21:46:59 -0400
+MIME-Version: 1.0
+Content-Type: text/plain; charset=us-ascii
+Content-Transfer-Encoding: 7bit
+Subject: bug demonstration
+ 12345678911234567892123456789312345678941234567895123456789612345678971234567898112345678911234567892123456789112345678911234567892123456789
+ more text
+From: aperson@dom.ain (Anne P. Erson)
+To: bperson@dom.ain (Barney P. Erson)
+
+test
diff --git a/Lib/test/test_email.py b/Lib/test/test_email.py
index efca478..14051c2 100644
--- a/Lib/test/test_email.py
+++ b/Lib/test/test_email.py
@@ -1143,6 +1143,10 @@ class TestIdempotent(TestEmailBase):
msg, text = self._msgobj('msg_02.txt')
self._idempotent(msg, text)
+ def test_long_header(self):
+ msg, text = self._msgobj('msg_27.txt')
+ self._idempotent(msg, text)
+
## def test_MIME_digest_with_part_headers(self):
## msg, text = self._msgobj('msg_28.txt')
## self._idempotent(msg, text)