summaryrefslogtreecommitdiffhomepage
path: root/test/test_perl_application.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2018-05-21 16:41:33 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2018-05-21 16:41:33 +0300
commit7d224bfc9e39cb7885885bb554ca21ab26f5ddd0 (patch)
treeb64a349507a19c1d3fdc5f6bbfda06e65db806a9 /test/test_perl_application.py
parent3e8dbfe5ffdfbf525dd115508dc28d15bb81a237 (diff)
downloadunit-7d224bfc9e39cb7885885bb554ca21ab26f5ddd0.tar.gz
unit-7d224bfc9e39cb7885885bb554ca21ab26f5ddd0.tar.bz2
Tests: added tests for SERVER_SOFTWARE variable.
Diffstat (limited to 'test/test_perl_application.py')
-rw-r--r--test/test_perl_application.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_perl_application.py b/test/test_perl_application.py
index 884c6dfb..09e3d576 100644
--- a/test/test_perl_application.py
+++ b/test/test_perl_application.py
@@ -19,8 +19,10 @@ class TestUnitPerlApplication(unit.TestUnitApplicationPerl):
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')