trivial: Clean up a DeprecationWarning

Looks like

    DeprecationWarning: an integer is required (got type Timestamp).
    Implicit conversion to integers using __int__ is deprecated, and
    may be removed in a future version of Python.

Change-Id: I320b7711f009cb0cffab38c105002ddbae1fa9e5
This commit is contained in:
Tim Burke
2021-07-15 15:18:38 -07:00
parent a5fc6a8211
commit 7b38d11c00

@ -239,9 +239,10 @@ class TestContainerController(unittest.TestCase):
self.assertTrue(created_at_header >= start)
self.assertEqual(response.headers['x-put-timestamp'],
Timestamp(start).normal)
time_fmt = "%a, %d %b %Y %H:%M:%S GMT"
self.assertEqual(
response.last_modified.strftime("%a, %d %b %Y %H:%M:%S GMT"),
time.strftime("%a, %d %b %Y %H:%M:%S GMT", time.gmtime(start)))
response.last_modified.strftime(time_fmt),
time.strftime(time_fmt, time.gmtime(int(start))))
# backend headers
self.assertEqual(int(response.headers