Pillow/Tests/test_imagesequence.py
hugovk 1633ffa878 Merge branch 'cleanup' of https://github.com/wiredfool/Pillow into wiredfool-cleanup
Conflicts:
	Tests/test_file_jpeg2k.py
	Tests/test_image_transform.py
	Tests/test_imagesequence.py
2014-06-23 13:39:27 +03:00

30 lines
561 B
Python

from helper import unittest, PillowTestCase, tearDownModule, lena
from PIL import ImageSequence
class TestImageSequence(PillowTestCase):
def test_sanity(self):
file = self.tempfile("temp.im")
im = lena("RGB")
im.save(file)
seq = ImageSequence.Iterator(im)
index = 0
for frame in seq:
self.assert_image_equal(im, frame)
self.assertEqual(im.tell(), index)
index += 1
self.assertEqual(index, 1)
if __name__ == '__main__':
unittest.main()
# End of file