summaryrefslogtreecommitdiffhomepage
path: root/test/test_python_application.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/test_python_application.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_python_application.py b/test/test_python_application.py
index d7913a1d..39fd970c 100644
--- a/test/test_python_application.py
+++ b/test/test_python_application.py
@@ -19,8 +19,10 @@ class TestUnitPythonApplication(unit.TestUnitApplicationPython):
self.assertEqual(resp['status'], 200, 'status')
headers = resp['headers']
- self.assertRegex(headers.pop('Server'), r'Unit/[\d\.]+',
- 'server header')
+ header_server = headers.pop('Server')
+ self.assertRegex(header_server, r'Unit/[\d\.]+', 'server header')
+ self.assertEqual(headers.pop('Server-Software'), header_server,
+ 'server software header')
date = headers.pop('Date')
self.assertEqual(date[-4:], ' GMT', 'date header timezone')