Replace lena.dcx with hopper.dcx. Created with ImageMagick: convert hopper.ppm hopper.dcx

This commit is contained in:
hugovk 2014-09-04 13:24:53 +03:00
parent 4a243e90bc
commit 76a7965187
3 changed files with 4 additions and 4 deletions

BIN
Tests/images/hopper.dcx Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,9 +1,9 @@
from helper import unittest, PillowTestCase, lena from helper import unittest, PillowTestCase, hopper
from PIL import Image, DcxImagePlugin from PIL import Image, DcxImagePlugin
# Created with ImageMagick: convert lena.ppm lena.dcx # Created with ImageMagick: convert hopper.ppm hopper.dcx
TEST_FILE = "Tests/images/lena.dcx" TEST_FILE = "Tests/images/hopper.dcx"
class TestFileDcx(PillowTestCase): class TestFileDcx(PillowTestCase):
@ -17,7 +17,7 @@ class TestFileDcx(PillowTestCase):
# Assert # Assert
self.assertEqual(im.size, (128, 128)) self.assertEqual(im.size, (128, 128))
self.assertIsInstance(im, DcxImagePlugin.DcxImageFile) self.assertIsInstance(im, DcxImagePlugin.DcxImageFile)
orig = lena() orig = hopper()
self.assert_image_equal(im, orig) self.assert_image_equal(im, orig)
def test_tell(self): def test_tell(self):