[Python-checkins] cpython (3.2): 3.2 - Fix closes Issue14281 - Test for cgi.escape by Brian Landers
senthil.kumaran
python-checkins at python.org
Tue Mar 13 09:51:33 CET 2012
http://hg.python.org/cpython/rev/13922f6d87f2
changeset: 75582:13922f6d87f2
branch: 3.2
parent: 75580:0b3e5503a6ee
user: Senthil Kumaran <senthil at uthcode.com>
date: Tue Mar 13 01:50:27 2012 -0700
summary:
3.2 - Fix closes Issue14281 - Test for cgi.escape by Brian Landers
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