Assert some pixel values

This commit is contained in:
Hugo 2017-01-30 15:33:18 +02:00 committed by wiredfool
parent 8840f2b0fb
commit 069ad8cbb0

View File

@ -62,6 +62,11 @@ class TestFileMsp(PillowTestCase):
self.assertEqual(im.mode, "1")
self.assertGreater(im.size, (360, 332))
self.assertIsInstance(im, MspImagePlugin.MspImageFile)
if "mandel" in path:
self.assertEqual(im.getpixel((0, 0)), 0)
elif "mexhat" in path:
self.assertEqual(im.getpixel((0, 0)), 255)
self.assertEqual(im.getpixel((200, 25)), 255)
ImageFile.LOAD_TRUNCATED_IMAGES = False
def test_cannot_save_wrong_mode(self):