diff options
author | Barry Warsaw <barry@python.org> | 2003-03-10 15:11:29 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2003-03-10 15:11:29 (GMT) |
commit | 796376338fce096cf57ef6b92812f34cd47ffe20 (patch) | |
tree | e0a7d2944557f82bacfa893b954dc060325eb5bc /Lib | |
parent | cd930f52586c5324d54a9cc4838344d32eb9d4fc (diff) | |
download | cpython-796376338fce096cf57ef6b92812f34cd47ffe20.zip cpython-796376338fce096cf57ef6b92812f34cd47ffe20.tar.gz cpython-796376338fce096cf57ef6b92812f34cd47ffe20.tar.bz2 |
test_another_long_multiline_header(): Yet another formatting test.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/email/test/test_email.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py index 678f145..549c3d0 100644 --- a/Lib/email/test/test_email.py +++ b/Lib/email/test/test_email.py @@ -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 + +''') + # Test mangling of "From " lines in the body of a message |