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

bwarsaw at users.sourceforge.net bwarsaw at users.sourceforge.net
Tue Sep 2 22:10:55 EDT 2003


Update of /cvsroot/python/python/dist/src/Lib/email/test
In directory sc8-pr-cvs1:/tmp/cvs-serv17808
Modified Files:
	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.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** test_email.py	19 Aug 2003 03:54:24 -0000	1.51
--- test_email.py	3 Sep 2003 04:10:52 -0000	1.52
***************
*** 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 によって変換されたページ (->オリジナル) /