From 5c3b10ee87d9a3c06bd438ce20d821cdc206e2c1 Mon Sep 17 00:00:00 2001 From: Hugo Date: Mon, 27 Feb 2017 15:41:28 +0200 Subject: [PATCH] Test PSD for similarity --- Tests/test_file_psd.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tests/test_file_psd.py b/Tests/test_file_psd.py index 2b4825734..bd1aca66c 100644 --- a/Tests/test_file_psd.py +++ b/Tests/test_file_psd.py @@ -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"