Commit 6aec197a by Vincent Pelletier

test: Fix Date header check rounding.

1 parent 9de6f6d2
......@@ -1779,12 +1779,12 @@ class CaucaseTest(unittest.TestCase):
'REQUEST_METHOD': 'GET',
})[0], 404)
min_date = round(time.time())
min_date = int(time.time())
status, _, header_dict, _ = request({
'PATH_INFO': '/cau/crl',
'REQUEST_METHOD': 'PUT',
})
max_date = round(time.time())
max_date = int(time.time())
self.assertEqual(status, 405)
self.assertItemsEqual(
[x.strip() for x in header_dict['Allow'].split(',')],
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!