Pillow/Tests/test_file_tga.py

21 lines
382 B
Python
Raw Normal View History

2014-08-20 10:32:06 +04:00
from helper import unittest, PillowTestCase
from PIL import Image
2014-08-20 10:39:11 +04:00
class TestFileTga(PillowTestCase):
2014-08-20 10:32:06 +04:00
2014-08-20 10:39:11 +04:00
def test_id_field(self):
2014-08-20 10:32:06 +04:00
# tga file with id field
test_file = "Tests/images/tga_id_field.tga"
# Act
im = Image.open(test_file)
# Assert
self.assertEqual(im.size, (100, 100))
if __name__ == '__main__':
unittest.main()