From 240754933e9c93eb5d4e99184d9167451ae45e16 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 17 Mar 2003 20:35:14 +0000 Subject: test_long_lines_with_different_header(): Another test from Jason. --- Lib/email/test/test_email.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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: , + """ + 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 -- cgit v0.12