Merge "Fix last-modified rounding in functional test"
This commit is contained in:
commit
9f0bf8e347
@ -195,7 +195,8 @@ class TestSwift3MultiUpload(Swift3FunctionalTestCase):
|
||||
# FIXME: COPY result drops mili/microseconds but GET doesn't
|
||||
last_modified_get = elem.find('Part').find('LastModified').text
|
||||
self.assertEquals(
|
||||
last_modified_get[:-6], last_modified[:-6])
|
||||
last_modified_get.rsplit('.', 1)[0],
|
||||
last_modified.rsplit('.', 1)[0])
|
||||
|
||||
# List Parts
|
||||
key, upload_id = uploads[0]
|
||||
|
@ -96,8 +96,8 @@ class TestSwift3Object(Swift3FunctionalTestCase):
|
||||
|
||||
# FIXME: COPY result drops mili/microseconds but GET doesn't
|
||||
self.assertEquals(
|
||||
elem.find('Contents').find("LastModified").text[:-6],
|
||||
last_modified_xml[:-6])
|
||||
elem.find('Contents').find("LastModified").text.rsplit('.', 1)[0],
|
||||
last_modified_xml.rsplit('.', 1)[0])
|
||||
|
||||
# GET Object
|
||||
status, headers, body = \
|
||||
|
Loading…
x
Reference in New Issue
Block a user