python/dist/src/Lib/email/test test_email.py, 1.50.10.1, 1.50.10.2
Update of /cvsroot/python/python/dist/src/Lib/email/test In directory sc8-pr-cvs1:/tmp/cvs-serv20016 Modified Files: Tag: release23-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.50.10.1 retrieving revision 1.50.10.2 diff -C2 -d -r1.50.10.1 -r1.50.10.2 *** test_email.py 19 Aug 2003 04:52:29 -0000 1.50.10.1 --- test_email.py 3 Sep 2003 04:22:00 -0000 1.50.10.2 *************** *** 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')
participants (1)
-
bwarsaw@users.sourceforge.net