More specific test in freeimage

This commit is contained in:
Steven Silvester
2015-03-21 09:31:34 -05:00
parent a51d49abe6
commit caea879bfc
+5 -3
View File
@@ -116,10 +116,12 @@ def test_metadata():
@skipif(not FI_available)
def test_collection():
pattern = [os.path.join(data_dir, pic)
for pic in ['camera.png', 'color.png']]
for pic in ['camera.png', 'color.png', 'multipage.tif']]
images = sio.ImageCollection(pattern)
assert len(images) == 2
assert len(images[:]) == 2
assert len(images) == 4
assert len(images[:]) == 4
# this will fail as freeimage cannot load multi-image tifs
assert_raises(TypeError, images.__getitem__, 3)
if __name__ == "__main__":
run_module_suite()