[Python-checkins] python/dist/src/Lib/test test_urllib.py, 1.17, 1.18
rhettinger@users.sourceforge.net
rhettinger at users.sourceforge.net
Sat Sep 10 16:30:12 CEST 2005
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16867/test
Modified Files:
test_urllib.py
Log Message:
Revert 1.170. Add tests.
Index: test_urllib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_urllib.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- test_urllib.py 26 Aug 2005 08:51:34 -0000 1.17
+++ test_urllib.py 10 Sep 2005 14:30:09 -0000 1.18
@@ -353,6 +353,12 @@
self.assertEqual(expect, result,
"using quote_plus(): %s != %s" % (expect, result))
+ def test_quoting_plus(self):
+ self.assertEqual(urllib.quote_plus('alpha+beta gamma'),
+ 'alpha%2Bbeta+gamma')
+ self.assertEqual(urllib.quote_plus('alpha+beta gamma', '+'),
+ 'alpha+beta+gamma')
+
class UnquotingTests(unittest.TestCase):
"""Tests for unquote() and unquote_plus()
More information about the Python-checkins
mailing list