mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 01:04:29 +03:00
Fix typo and update test
This commit is contained in:
parent
6ff77414b3
commit
7ba5962512
|
@ -105,6 +105,7 @@ def test_meta():
|
||||||
assert_equal(meta.num_pages, 1)
|
assert_equal(meta.num_pages, 1)
|
||||||
ole.close()
|
ole.close()
|
||||||
|
|
||||||
|
|
||||||
def test_gettimes():
|
def test_gettimes():
|
||||||
# Arrange
|
# Arrange
|
||||||
ole_file = "Tests/images/test-ole-file.doc"
|
ole_file = "Tests/images/test-ole-file.doc"
|
||||||
|
@ -112,13 +113,14 @@ def test_gettimes():
|
||||||
root_entry = ole.direntries[0]
|
root_entry = ole.direntries[0]
|
||||||
|
|
||||||
# Act
|
# Act
|
||||||
ctime = root_entry.getmtime()
|
ctime = root_entry.getctime()
|
||||||
mtime = root_entry.getmtime()
|
mtime = root_entry.getmtime()
|
||||||
|
|
||||||
# Assert
|
# Assert
|
||||||
assert_is_instance(ctime, datetime.datetime)
|
assert_is_instance(ctime, type(None))
|
||||||
assert_is_instance(mtime, datetime.datetime)
|
assert_is_instance(mtime, datetime.datetime)
|
||||||
assert_equal(ctime.year, 2014)
|
assert_equal(ctime, None)
|
||||||
|
assert_equal(mtime.year, 2014)
|
||||||
ole.close()
|
ole.close()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user