]> granicus.if.org Git - python/commitdiff
test_long_lines_with_different_header(): Another test from Jason.
authorBarry Warsaw <barry@python.org>
Mon, 17 Mar 2003 20:35:14 +0000 (20:35 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 17 Mar 2003 20:35:14 +0000 (20:35 +0000)
Lib/email/test/test_email.py

index 8950e0d17a7106f002b26af3a2c40f8eb32158ef..280b400161caa3c01992f83bbcd65221c3d919f7 100644 (file)
@@ -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>
+
+""")
+
 
 \f
 # Test mangling of "From " lines in the body of a message