added tests for ftex

This commit is contained in:
wiredfool 2016-01-30 13:22:02 +00:00
parent 58c59bbad0
commit 850f6dca06

15
Tests/test_file_ftex.py Normal file
View File

@ -0,0 +1,15 @@
from helper import unittest, PillowTestCase
from PIL import Image
class TestFileFtex(PillowTestCase):
def test_load_raw(self):
im = Image.open('Tests/images/ftex_uncompressed.ftu')
target = Image.open('Tests/images/ftex_uncompressed.png')
self.assert_image_equal(im, target)
def test_load_dxt1(self):
im = Image.open('Tests/images/ftex_dxt1.ftc')
target = Image.open('Tests/images/ftex_dxt1.png')
self.assert_image_similar(im, target, 15)