Test fix for supported 32bit RGBA .cur file

Some .cur file with alpha was loaded fully opaque with PIL. Fixed, and fixed the test to take that into account.
This commit is contained in:
artscoop 2015-03-05 10:55:32 +01:00
parent 613d22fc75
commit 514c55aa16

View File

@ -16,9 +16,9 @@ class TestFileCur(PillowTestCase):
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))
self.assertEqual(im.getpixel((10, 1)), (0, 0, 0, 0))
self.assertEqual(im.getpixel((11, 1)), (253, 254, 254, 1))
self.assertEqual(im.getpixel((16, 16)), (84, 87, 86, 255))
if __name__ == '__main__':