Commit 6aec197a authored by Vincent Pelletier's avatar Vincent Pelletier

test: Fix Date header check rounding.

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(',')],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment