summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2003-03-17 20:35:14 (GMT)
committerBarry Warsaw <barry@python.org>2003-03-17 20:35:14 (GMT)
commit240754933e9c93eb5d4e99184d9167451ae45e16 (patch)
treef9e07cab8024f6fa3f74e0715177260632c66a68
parent1da1dbf4586afbd6b5d5c3cf244a1a3ea0f4382b (diff)
downloadcpython-240754933e9c93eb5d4e99184d9167451ae45e16.zip
cpython-240754933e9c93eb5d4e99184d9167451ae45e16.tar.gz
cpython-240754933e9c93eb5d4e99184d9167451ae45e16.tar.bz2
test_long_lines_with_different_header(): Another test from Jason.
-rw-r--r--Lib/email/test/test_email.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py
index 8950e0d..280b400 100644
--- a/Lib/email/test/test_email.py
+++ b/Lib/email/test/test_email.py
@@ -841,6 +841,22 @@ Received: from siimage.com ([172.25.1.3]) by zima.siliconimage.com with
''')
+ def test_long_lines_with_different_header(self):
+ eq = self.ndiffAssertEqual
+ h = """\
+List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/spamassassin-talk>,
+ <mailto:spamassassin-talk-request@lists.sourceforge.net?subject=unsubscribe>"""
+ msg = Message()
+ msg['List'] = h
+ msg['List'] = Header(h, header_name='List')
+ eq(msg.as_string(), """\
+List: List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/spamassassin-talk>,
+ <mailto:spamassassin-talk-request@lists.sourceforge.net?subject=unsubscribe>
+List: List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/spamassassin-talk>,
+ <mailto:spamassassin-talk-request@lists.sourceforge.net?subject=unsubscribe>
+
+""")
+
# Test mangling of "From " lines in the body of a message