mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 12:17:14 +03:00
21 lines
382 B
Python
21 lines
382 B
Python
from helper import unittest, PillowTestCase
|
|
|
|
from PIL import Image
|
|
|
|
|
|
class TestFileTga(PillowTestCase):
|
|
|
|
def test_id_field(self):
|
|
# 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()
|