mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Updated tests
This commit is contained in:
parent
680a7ac43b
commit
72f0c7b873
|
@ -29,7 +29,7 @@ class TestFileFli(PillowTestCase):
|
||||||
|
|
||||||
def test_tell(self):
|
def test_tell(self):
|
||||||
# Arrange
|
# Arrange
|
||||||
im = Image.open(test_file)
|
im = Image.open(static_test_file)
|
||||||
|
|
||||||
# Act
|
# Act
|
||||||
frame = im.tell()
|
frame = im.tell()
|
||||||
|
@ -49,7 +49,7 @@ class TestFileFli(PillowTestCase):
|
||||||
self.assertFalse(im.is_animated)
|
self.assertFalse(im.is_animated)
|
||||||
|
|
||||||
im = Image.open(animated_test_file)
|
im = Image.open(animated_test_file)
|
||||||
self.assertEqual(im.n_frames, 385)
|
self.assertEqual(im.n_frames, 384)
|
||||||
self.assertTrue(im.is_animated)
|
self.assertTrue(im.is_animated)
|
||||||
|
|
||||||
def test_eoferror(self):
|
def test_eoferror(self):
|
||||||
|
@ -66,7 +66,7 @@ class TestFileFli(PillowTestCase):
|
||||||
|
|
||||||
def test_seek_outside(self):
|
def test_seek_outside(self):
|
||||||
# Test negative seek
|
# Test negative seek
|
||||||
im = Image.open(test_file)
|
im = Image.open(static_test_file)
|
||||||
im.seek(-1)
|
im.seek(-1)
|
||||||
self.assertEqual(im.tell(), 0)
|
self.assertEqual(im.tell(), 0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user