mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Assert some pixel values
This commit is contained in:
parent
8840f2b0fb
commit
069ad8cbb0
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user