From 7ba5962512cad6abaa5c6c8313d3cdb877a0daea Mon Sep 17 00:00:00 2001 From: hugovk Date: Mon, 14 Apr 2014 00:27:08 +0300 Subject: [PATCH] Fix typo and update test --- Tests/test_olefileio.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Tests/test_olefileio.py b/Tests/test_olefileio.py index f31845556..98374c4ca 100644 --- a/Tests/test_olefileio.py +++ b/Tests/test_olefileio.py @@ -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()