Capitalization in the "Server" field.

This commit is contained in:
Valentin Bartenev
2018-03-13 20:32:47 +03:00
parent 1ac9db4750
commit bebc5845f8
4 changed files with 5 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ class TestUnitPythonApplication(unit.TestUnitApplicationPython):
self.assertEqual(resp['status'], 200, 'status')
headers = resp['headers']
self.assertRegex(headers.pop('Server'), r'unit/[\d\.]+',
self.assertRegex(headers.pop('Server'), r'Unit/[\d\.]+',
'server header')
self.assertLess(abs(time.mktime(time.gmtime()) -
time.mktime(time.strptime(headers.pop('Date'),