mirror of https://github.com/python/cpython
3.2 - Fix closes Issue14281 - Test for cgi.escape by Brian Landers
This commit is contained in:
parent
1732ab4f15
commit
47b5ddb9cf
|
@ -118,6 +118,11 @@ def gen_result(data, environ):
|
|||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue