Pull request feedback fixes

This commit is contained in:
Randall Burt
2013-03-18 10:21:44 -05:00
parent 4061cf4f22
commit ffca15e246
2 changed files with 4 additions and 4 deletions

View File

@@ -92,7 +92,8 @@ class Request(object):
self.app = env['SCRIPT_NAME']
self.method = env['REQUEST_METHOD']
self.path = env['PATH_INFO'] or '/'
# QUERY_STRING isn't required to be in env so lets check
# QUERY_STRING isn't required to be in env, so let's check
if 'QUERY_STRING' in env:
self.query_string = query_string = env['QUERY_STRING']
else:

View File

@@ -22,10 +22,9 @@ class TestReqVars(testing.TestSuite):
env = testing.create_environ()
if 'QUERY_STRING' in env:
del env['QUERY_STRING']
# should not cause an exception when Request instantiated
# Should not cause an exception when Request instantiated
req = Request(env)
# just make sure we don't cause regression
self.assertIsNone(req.get_param("foo"))
def test_reconstruct_url(self):
req = self.req