Fix typo and update test

This commit is contained in:
hugovk 2014-04-14 00:27:08 +03:00
parent 6ff77414b3
commit 7ba5962512

View File

@ -105,6 +105,7 @@ def test_meta():
assert_equal(meta.num_pages, 1)
ole.close()
def test_gettimes():
# Arrange
ole_file = "Tests/images/test-ole-file.doc"
@ -112,13 +113,14 @@ def test_gettimes():
root_entry = ole.direntries[0]
# Act
ctime = root_entry.getmtime()
ctime = root_entry.getctime()
mtime = root_entry.getmtime()
# Assert
assert_is_instance(ctime, datetime.datetime)
assert_is_instance(ctime, type(None))
assert_is_instance(mtime, datetime.datetime)
assert_equal(ctime.year, 2014)
assert_equal(ctime, None)
assert_equal(mtime.year, 2014)
ole.close()