From 8f843381cd30c1c3cb556b5abe1203d1e76b889b Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Tue, 12 Sep 2017 06:20:11 +0000 Subject: [PATCH] Add assertion about last-modified to object post test Change-Id: I850bf44ab9c9388cb6434e33ae0b20ec361aca0e --- test/functional/tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/functional/tests.py b/test/functional/tests.py index aa121d4b2e..05b062f43a 100644 --- a/test/functional/tests.py +++ b/test/functional/tests.py @@ -2531,6 +2531,7 @@ class TestFile(Base): self.assertEqual(1024, f_dict['bytes']) self.assertEqual('text/foobar', f_dict['content_type']) self.assertEqual(etag, f_dict['hash']) + put_last_modified = f_dict['last_modified'] # now POST updated content-type to each file file_item = self.env.container.file(file_name) @@ -2555,6 +2556,7 @@ class TestFile(Base): self.fail('Failed to find file %r in listing' % file_name) self.assertEqual(1024, f_dict['bytes']) self.assertEqual('image/foobarbaz', f_dict['content_type']) + self.assertLess(put_last_modified, f_dict['last_modified']) self.assertEqual(etag, f_dict['hash'])