Sanity check :)

This commit is contained in:
root 2014-08-26 16:56:35 +10:00 committed by wiredfool
parent 0cd1d9526d
commit 5a47b2bc84

View File

@ -26,6 +26,18 @@ class TestJp2kLeak(PillowTestCase):
im.load()
im.close()
def self_sanity_check(self):
# Arrange
j2k = Image.open('Tests/images/rgb_trns_ycbc.j2k')
jp2 = Image.open('Tests/images/rgb_trns_ycbc.jp2')
# Act
j2k.load()
jp2.load()
# Assert
self.assertEqual(j2k.mode, 'RGBA')
self.assertEqual(jp2.mode, 'RGBA')
if __name__ == '__main__':
unittest.main()