From: Barry Warsaw Date: Mon, 17 Mar 2003 20:35:14 +0000 (+0000) Subject: test_long_lines_with_different_header(): Another test from Jason. X-Git-Tag: v2.3c1~1442 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=240754933e9c93eb5d4e99184d9167451ae45e16;p=python test_long_lines_with_different_header(): Another test from Jason. --- diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py index 8950e0d17a..280b400161 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: , + """ + msg = Message() + msg['List'] = h + msg['List'] = Header(h, header_name='List') + eq(msg.as_string(), """\ +List: List-Unsubscribe: , + +List: List-Unsubscribe: , + + +""") + # Test mangling of "From " lines in the body of a message