Test PSD for similarity

This commit is contained in:
Hugo 2017-02-27 15:41:28 +02:00
parent 3918dd4efd
commit 5c3b10ee87

View File

@ -1,4 +1,4 @@
from helper import unittest, PillowTestCase
from helper import hopper, unittest, PillowTestCase
from PIL import Image, PsdImagePlugin
@ -15,6 +15,9 @@ class TestImagePsd(PillowTestCase):
self.assertEqual(im.size, (128, 128))
self.assertEqual(im.format, "PSD")
im2 = hopper()
self.assert_image_similar(im, im2, 4.8)
def test_invalid_file(self):
invalid_file = "Tests/images/flower.jpg"