From 7d224bfc9e39cb7885885bb554ca21ab26f5ddd0 Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Mon, 21 May 2018 16:41:33 +0300 Subject: Tests: added tests for SERVER_SOFTWARE variable. --- test/test_ruby_application.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/test_ruby_application.py') 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') -- cgit