Merged upstream change.
This commit is contained in:
commit
71e51d66d6
|
@ -120,6 +120,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