Issue 3801. Fixing a dumb error in the deprecated parse_qsl()

function.  Tests added.
This commit is contained in:
Facundo Batista 2008-09-08 00:20:28 +00:00
parent e080cdf30a
commit ace0bcf669
2 changed files with 12 additions and 1 deletions

View file

@ -344,6 +344,17 @@ this is the content of the fake file
v = gen_result(data, environ)
self.assertEqual(result, v)
def test_deprecated_parse_qs(self):
# this func is moved to urlparse, this is just a sanity check
self.assertEqual({'a': ['A1'], 'B': ['B3'], 'b': ['B2']},
cgi.parse_qs('a=A1&b=B2&B=B3'))
def test_deprecated_parse_qsl(self):
# this func is moved to urlparse, this is just a sanity check
self.assertEqual([('a', 'A1'), ('b', 'B2'), ('B', 'B3')],
cgi.parse_qsl('a=A1&b=B2&B=B3'))
def test_main():
run_unittest(CgiTests)