Sanity test for SunImagePlugin.py

This commit is contained in:
hugovk 2014-07-16 14:24:23 +03:00
parent 5db868e060
commit d04ffd2377

23
Tests/test_file_sun.py Normal file
View File

@ -0,0 +1,23 @@
from helper import unittest, PillowTestCase
from PIL import Image
class TestFileSun(PillowTestCase):
def test_sanity(self):
# Arrange
# Created with ImageMagick: convert lena.ppm lena.ras
test_file = "Tests/images/lena.ras"
# Act
im = Image.open(test_file)
# Assert
self.assertEqual(im.size, (128, 128))
if __name__ == '__main__':
unittest.main()
# End of file