Compare to a Hopper image with a similar XV palette

This commit is contained in:
Hugo 2017-03-06 17:33:47 +02:00
parent a03a6e2049
commit 3e6d867ae8

View File

@ -13,7 +13,10 @@ class TestFileXVThumb(PillowTestCase):
# Assert
self.assertEqual(im.format, "XVThumb")
self.assert_image_similar(im, hopper("P"), 49)
# Create a Hopper image with a similar XV palette
im_hopper = hopper().quantize(palette=im)
self.assert_image_similar(im, im_hopper, 9)
def test_unexpected_eof(self):
# Test unexpected EOF reading XV thumbnail file