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

bwarsaw at users.sourceforge.net bwarsaw at users.sourceforge.net
Tue Sep 2 22:14:31 EDT 2003


Update of /cvsroot/python/python/dist/src/Lib/email/test
In directory sc8-pr-cvs1:/tmp/cvs-serv18979
Modified Files:
 Tag: release22-maint
	test_email.py 
Log Message:
test_get_param_with_semis_in_quotes(): Test case for SF bug #794466.
Backport candidate.
Index: test_email.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/test/test_email.py,v
retrieving revision 1.17.2.8
retrieving revision 1.17.2.9
diff -C2 -d -r1.17.2.8 -r1.17.2.9
*** test_email.py	19 Aug 2003 04:56:47 -0000	1.17.2.8
--- test_email.py	3 Sep 2003 04:14:29 -0000	1.17.2.9
***************
*** 314,317 ****
--- 314,324 ----
 self.assertEqual(msg.get_payload(1).get_param('name'), 'wibble.JPG')
 
+ def test_get_param_with_semis_in_quotes(self):
+ msg = email.message_from_string(
+ 'Content-Type: image/pjpeg; name="Jim&&Jill"\n')
+ self.assertEqual(msg.get_param('name'), 'Jim&&Jill')
+ self.assertEqual(msg.get_param('name', unquote=False),
+ '"Jim&&Jill"')
+ 
 def test_has_key(self):
 msg = email.message_from_string('Header: exists')


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /