Pillow/Tests/test_file_blp.py

25 lines
753 B
Python
Raw Normal View History

2018-02-17 03:46:29 +03:00
from PIL import Image
from .helper import PillowTestCase, unittest
2018-02-17 03:46:29 +03:00
class TestFileBlp(PillowTestCase):
2018-02-18 07:24:39 +03:00
def test_load_blp2_raw(self):
im = Image.open("Tests/images/blp/blp2_raw.blp")
target = Image.open("Tests/images/blp/blp2_raw.png")
self.assert_image_equal(im, target)
2018-02-17 03:46:29 +03:00
def test_load_blp2_dxt1(self):
2018-02-18 07:24:39 +03:00
im = Image.open("Tests/images/blp/blp2_dxt1.blp")
target = Image.open("Tests/images/blp/blp2_dxt1.png")
self.assert_image_equal(im, target)
def test_load_blp2_dxt1a(self):
im = Image.open("Tests/images/blp/blp2_dxt1a.blp")
target = Image.open("Tests/images/blp/blp2_dxt1a.png")
self.assert_image_equal(im, target)
2018-02-17 03:46:29 +03:00
if __name__ == "__main__":
unittest.main()