diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2018-02-05 15:39:16 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2018-02-05 15:39:16 +0300 |
commit | 0379f927b33f139f9838bb14b1d48e90ee9321ea (patch) | |
tree | 610b5de76117e0b4fdc9718d2dc59478b555bb89 /test | |
parent | 3faa154223d0e4013bcfc07d71cea5ed671dfdf8 (diff) | |
download | unit-0379f927b33f139f9838bb14b1d48e90ee9321ea.tar.gz unit-0379f927b33f139f9838bb14b1d48e90ee9321ea.tar.bz2 |
Tests: simplified test for query string.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_python_application.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/test/test_python_application.py b/test/test_python_application.py index 39493160..e5f1d02c 100644 --- a/test/test_python_application.py +++ b/test/test_python_application.py @@ -91,13 +91,8 @@ def application(environ, start_response): resp = self.get(url='/?var1=val1&var2=val2') - self.assertEqual(resp['status'], 200, 'status') - headers = resp['headers'] - headers.pop('Server') - self.assertDictEqual(headers, { - 'Content-Length': '0', - 'Query-String': 'var1=val1&var2=val2' - }, 'headers') + self.assertEqual(resp['headers']['Query-String'], 'var1=val1&var2=val2', + 'Query-String header') @unittest.expectedFailure def test_python_application_server_port(self): |