diff options
Diffstat (limited to 'test/test_perl_application.py')
-rw-r--r-- | test/test_perl_application.py | 6 |
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') |