diff options
author | Barry Warsaw <barry@python.org> | 2003-03-07 15:35:47 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2003-03-07 15:35:47 (GMT) |
commit | 82783e6f33e7c7e82e391adf76865d8e035721ff (patch) | |
tree | 5d52a2e17b438515fc4f86e49a92c539c2fb9fa2 /Lib/email | |
parent | e5c691abe3946ddbaa00730b92f3b96f96903f7d (diff) | |
download | cpython-82783e6f33e7c7e82e391adf76865d8e035721ff.zip cpython-82783e6f33e7c7e82e391adf76865d8e035721ff.tar.gz cpython-82783e6f33e7c7e82e391adf76865d8e035721ff.tar.bz2 |
test_string_headerinst_eq(): Another Jason test :)
Diffstat (limited to 'Lib/email')
-rw-r--r-- | Lib/email/test/test_email.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py index 86ebaa5..6320cd5 100644 --- a/Lib/email/test/test_email.py +++ b/Lib/email/test/test_email.py @@ -780,6 +780,20 @@ Received-2: from FOO.TLD (vizworld.acl.foo.tld [123.452.678.9]) by """) + def test_string_headerinst_eq(self): + h = '<15975.17901.207240.414604@sgigritzmann1.mathematik.tu-muenchen.de> (David Bremner\'s message of "Thu, 6 Mar 2003 13:58:21 +0100")' + msg = Message() + msg['Received-1'] = Header(h, header_name='Received-1', + continuation_ws='\t') + msg['Received-2'] = h + self.assertEqual(msg.as_string(), """\ +Received-1: <15975.17901.207240.414604@sgigritzmann1.mathematik.tu-muenchen.de> + (David Bremner's message of "Thu, 6 Mar 2003 13:58:21 +0100") +Received-2: <15975.17901.207240.414604@sgigritzmann1.mathematik.tu-muenchen.de> + (David Bremner's message of "Thu, 6 Mar 2003 13:58:21 +0100") + +""") + # Test mangling of "From " lines in the body of a message |