Tests: simplified test for query string.
This commit is contained in:
@@ -91,13 +91,8 @@ def application(environ, start_response):
|
|||||||
|
|
||||||
resp = self.get(url='/?var1=val1&var2=val2')
|
resp = self.get(url='/?var1=val1&var2=val2')
|
||||||
|
|
||||||
self.assertEqual(resp['status'], 200, 'status')
|
self.assertEqual(resp['headers']['Query-String'], 'var1=val1&var2=val2',
|
||||||
headers = resp['headers']
|
'Query-String header')
|
||||||
headers.pop('Server')
|
|
||||||
self.assertDictEqual(headers, {
|
|
||||||
'Content-Length': '0',
|
|
||||||
'Query-String': 'var1=val1&var2=val2'
|
|
||||||
}, 'headers')
|
|
||||||
|
|
||||||
@unittest.expectedFailure
|
@unittest.expectedFailure
|
||||||
def test_python_application_server_port(self):
|
def test_python_application_server_port(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user