From 0379f927b33f139f9838bb14b1d48e90ee9321ea Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Mon, 5 Feb 2018 15:39:16 +0300 Subject: Tests: simplified test for query string. --- test/test_python_application.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'test/test_python_application.py') 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): -- cgit