2016-01-30 16:22:02 +03:00
|
|
|
from PIL import Image
|
|
|
|
|
2019-07-06 23:40:53 +03:00
|
|
|
from .helper import PillowTestCase
|
|
|
|
|
2016-02-05 01:57:13 +03:00
|
|
|
|
2016-01-30 16:22:02 +03:00
|
|
|
class TestFileFtex(PillowTestCase):
|
|
|
|
def test_load_raw(self):
|
2019-11-25 23:03:23 +03:00
|
|
|
with Image.open("Tests/images/ftex_uncompressed.ftu") as im:
|
|
|
|
with Image.open("Tests/images/ftex_uncompressed.png") as target:
|
|
|
|
self.assert_image_equal(im, target)
|
2016-01-30 16:22:02 +03:00
|
|
|
|
|
|
|
def test_load_dxt1(self):
|
2019-11-25 23:03:23 +03:00
|
|
|
with Image.open("Tests/images/ftex_dxt1.ftc") as im:
|
|
|
|
with Image.open("Tests/images/ftex_dxt1.png") as target:
|
|
|
|
self.assert_image_similar(im, target.convert("RGBA"), 15)
|