Check some pixel colors to ensure image is loaded properly

This commit is contained in:
hugovk 2014-07-17 10:42:43 +03:00
parent 3c8f858aad
commit 1e24dcd317

View File

@ -15,6 +15,10 @@ class TestFileCur(PillowTestCase):
# Assert
self.assertEqual(im.size, (32, 32))
self.assertIsInstance(im, CurImagePlugin.CurImageFile)
# Check some pixel colors to ensure image is loaded properly
self.assertEqual(im.getpixel((10, 1)), (0, 0, 0))
self.assertEqual(im.getpixel((11, 1)), (253, 254, 254))
self.assertEqual(im.getpixel((16, 16)), (84, 87, 86))
if __name__ == '__main__':