Pillow/Tests/test_file_blp.py

15 lines
366 B
Python
Raw Normal View History

2018-02-17 03:46:29 +03:00
from PIL import Image
from helper import PillowTestCase, unittest
class TestFileBlp(PillowTestCase):
def test_load_blp2_dxt1(self):
im = Image.open("Tests/images/blp2_dxt1.blp")
target = Image.open("Tests/images/blp2_dxt1.png")
self.assert_image_similar(im, target.convert("RGBA"), 15)
if __name__ == "__main__":
unittest.main()