From 1e24dcd3170193ff3485f6053a217cb000f27af3 Mon Sep 17 00:00:00 2001 From: hugovk Date: Thu, 17 Jul 2014 10:42:43 +0300 Subject: [PATCH] Check some pixel colors to ensure image is loaded properly --- Tests/test_file_cur.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tests/test_file_cur.py b/Tests/test_file_cur.py index 5dc096968..54bfe84fe 100644 --- a/Tests/test_file_cur.py +++ b/Tests/test_file_cur.py @@ -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__':