summaryrefslogtreecommitdiffhomepage
path: root/test/test_ruby_application.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_ruby_application.py')
-rw-r--r--test/test_ruby_application.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/test_ruby_application.py b/test/test_ruby_application.py
index 796afc54..035ae65e 100644
--- a/test/test_ruby_application.py
+++ b/test/test_ruby_application.py
@@ -21,8 +21,12 @@ class TestUnitRubyApplication(unit.TestUnitApplicationRuby):
headers = resp['headers']
self.assertRegex(headers.pop('Server'), r'Unit/[\d\.]+',
'server header')
- self.assertLess(abs(self.date_to_sec_epoch(headers.pop('Date')) -
- self.sec_epoch()), 5, 'date header')
+
+ date = headers.pop('Date')
+ self.assertEqual(date[-4:], ' GMT', 'date header timezone')
+ self.assertLess(abs(self.date_to_sec_epoch(date) - self.sec_epoch()), 5,
+ 'date header')
+
self.assertDictEqual(headers, {
'Content-Length': str(len(body)),
'Content-Type': 'text/html',