diff options
author | Barry Warsaw <barry@python.org> | 2003-03-30 20:47:22 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2003-03-30 20:47:22 (GMT) |
commit | 9c505ae3da1e1e82fd812c4aa3ff9a6c55eafe3d (patch) | |
tree | 67d5d42859866f6f686d457ce615b149d8eb60ba /Lib | |
parent | ba1548a7362aecf4c94523579486fed62de12d15 (diff) | |
download | cpython-9c505ae3da1e1e82fd812c4aa3ff9a6c55eafe3d.zip cpython-9c505ae3da1e1e82fd812c4aa3ff9a6c55eafe3d.tar.gz cpython-9c505ae3da1e1e82fd812c4aa3ff9a6c55eafe3d.tar.bz2 |
test_whitespace_eater_unicode_2(): Test case for SF bug #710498.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/email/test/test_email.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py index 280b400..7659e2a 100644 --- a/Lib/email/test/test_email.py +++ b/Lib/email/test/test_email.py @@ -1310,6 +1310,15 @@ class TestRFC2047(unittest.TestCase): hu = make_header(dh).__unicode__().encode('latin-1') eq(hu, 'Andr\xe9 Pirard <pirard@dom.ain>') + def test_whitespace_eater_unicode_2(self): + eq = self.assertEqual + s = 'The =?iso-8859-1?b?cXVpY2sgYnJvd24gZm94?= jumped over the =?iso-8859-1?b?bGF6eSBkb2c=?=' + dh = decode_header(s) + eq(dh, [('The', None), ('quick brown fox', 'iso-8859-1'), + ('jumped over the', None), ('lazy dog', 'iso-8859-1')]) + hu = make_header(dh).__unicode__() + eq(hu, u'The quick brown fox jumped over the lazy dog') + # Test the MIMEMessage class |