[Python-checkins] cpython (merge default -> default): Merged upstream change.
vinay.sajip
python-checkins at python.org
Tue Mar 13 13:19:44 CET 2012
http://hg.python.org/cpython/rev/8df496684d99
changeset: 75587:8df496684d99
parent: 75586:30fe8a62046e
parent: 75583:70712a806bdb
user: Vinay Sajip <vinay_sajip at yahoo.co.uk>
date: Tue Mar 13 12:15:46 2012 +0000
summary:
Merged upstream change.
files:
Lib/test/test_cgi.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_cgi.py b/Lib/test/test_cgi.py
--- a/Lib/test/test_cgi.py
+++ b/Lib/test/test_cgi.py
@@ -118,6 +118,11 @@
class CgiTests(unittest.TestCase):
+ def test_escape(self):
+ self.assertEqual("test & string", cgi.escape("test & string"))
+ self.assertEqual("<test string>", cgi.escape("<test string>"))
+ self.assertEqual(""test string"", cgi.escape('"test string"', True))
+
def test_strict(self):
for orig, expect in parse_strict_test_cases:
# Test basic parsing
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list