Merge pull request #2675 from radarhere/im

Added test for ImImagePlugin tell()
This commit is contained in:
wiredfool 2017-08-16 15:41:37 +01:00 committed by GitHub
commit a42f993bec

View File

@ -15,6 +15,16 @@ class TestFileIm(PillowTestCase):
self.assertEqual(im.size, (128, 128))
self.assertEqual(im.format, "IM")
def test_tell(self):
# Arrange
im = Image.open(TEST_IM)
# Act
frame = im.tell()
# Assert
self.assertEqual(frame, 0)
def test_n_frames(self):
im = Image.open(TEST_IM)
self.assertEqual(im.n_frames, 1)