[Python-checkins] python/dist/src/Lib/email/test test_email.py,1.47,1.48

bwarsaw@users.sourceforge.net bwarsaw@users.sourceforge.net
Sun, 30 Mar 2003 12:47:24 -0800


Update of /cvsroot/python/python/dist/src/Lib/email/test
In directory sc8-pr-cvs1:/tmp/cvs-serv26697/email/test

Modified Files:
	test_email.py 
Log Message:
test_whitespace_eater_unicode_2(): Test case for SF bug #710498.


Index: test_email.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/test/test_email.py,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -d -r1.47 -r1.48
*** test_email.py	17 Mar 2003 20:35:14 -0000	1.47
--- test_email.py	30 Mar 2003 20:47:22 -0000	1.48
***************
*** 1311,1314 ****
--- 1311,1323 ----
          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')
+