Pillow/Tests/test_file_sun.py

24 lines
440 B
Python
Raw Normal View History

2014-07-16 15:24:23 +04:00
from helper import unittest, PillowTestCase
from PIL import Image
class TestFileSun(PillowTestCase):
def test_sanity(self):
# Arrange
# Created with ImageMagick: convert hopper.jpg hopper.ras
test_file = "Tests/images/hopper.ras"
2014-07-16 15:24:23 +04:00
# Act
im = Image.open(test_file)
# Assert
self.assertEqual(im.size, (128, 128))
if __name__ == '__main__':
unittest.main()
# End of file