[Python-checkins] cpython (merge 2.7 -> 2.7): Merged upstream change.
vinay.sajip
python-checkins at python.org
Tue Mar 13 13:19:46 CET 2012
http://hg.python.org/cpython/rev/48e6d66f708f
changeset: 75589:48e6d66f708f
branch: 2.7
parent: 75584:a5c4b8ccca8b
parent: 75581:757afb3af762
user: Vinay Sajip <vinay_sajip at yahoo.co.uk>
date: Tue Mar 13 12:18:55 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
@@ -120,6 +120,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