diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2018-05-21 16:41:33 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2018-05-21 16:41:33 +0300 |
commit | 7d224bfc9e39cb7885885bb554ca21ab26f5ddd0 (patch) | |
tree | b64a349507a19c1d3fdc5f6bbfda06e65db806a9 /test/test_ruby_application.py | |
parent | 3e8dbfe5ffdfbf525dd115508dc28d15bb81a237 (diff) | |
download | unit-7d224bfc9e39cb7885885bb554ca21ab26f5ddd0.tar.gz unit-7d224bfc9e39cb7885885bb554ca21ab26f5ddd0.tar.bz2 |
Tests: added tests for SERVER_SOFTWARE variable.
Diffstat (limited to 'test/test_ruby_application.py')
-rw-r--r-- | test/test_ruby_application.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_ruby_application.py b/test/test_ruby_application.py index 035ae65e..77040127 100644 --- a/test/test_ruby_application.py +++ b/test/test_ruby_application.py @@ -19,8 +19,10 @@ class TestUnitRubyApplication(unit.TestUnitApplicationRuby): 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') |