]> granicus.if.org Git - python/commitdiff
test_another_long_multiline_header(): Yet another formatting test.
authorBarry Warsaw <barry@python.org>
Mon, 10 Mar 2003 15:11:29 +0000 (15:11 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 10 Mar 2003 15:11:29 +0000 (15:11 +0000)
Lib/email/test/test_email.py

index 678f145cc9337d15515332800a2ff1ed3bae34d0..549c3d0776a7ed22efeaa8e08107b29868d1eb3d 100644 (file)
@@ -810,6 +810,18 @@ Face-2: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUAAAAkHiJeRUIcGBi9
 
 """)
 
+    def test_another_long_multiline_header(self):
+        eq = self.ndiffAssertEqual
+        m = '''\
+Received: from siimage.com ([172.25.1.3]) by zima.siliconimage.com with Microsoft SMTPSVC(5.0.2195.4905);
+       Wed, 16 Oct 2002 07:41:11 -0700'''
+        msg = email.message_from_string(m)
+        eq(msg.as_string(), '''\
+Received: from siimage.com ([172.25.1.3]) by zima.siliconimage.com with
+       Microsoft SMTPSVC(5.0.2195.4905); Wed, 16 Oct 2002 07:41:11 -0700
+
+''')
+
 
 \f
 # Test mangling of "From " lines in the body of a message