added test for multi.tif

This commit is contained in:
Kenny Ostrom 2014-08-21 15:52:09 -05:00
parent c7862f57c2
commit 7158894042
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
from helper import unittest, PillowTestCase
from PIL import Image, ImageSequence, TiffImagePlugin
TiffImagePlugin.READ_LIBTIFF = True
class TestFileTiff(PillowTestCase):
def testSequence(self):
try:
im = Image.open('multi.tif')
index = 0
for frame in ImageSequence.Iterator(im):
frame.load()
self.assertEqual(index, im.tell())
index = index+1
except Exception as e:
self.assertTrue(False, str(e))