2018-02-17 03:46:29 +03:00
|
|
|
from PIL import Image
|
|
|
|
|
2021-02-21 14:15:56 +03:00
|
|
|
from .helper import assert_image_equal_tofile
|
2018-02-17 03:46:29 +03:00
|
|
|
|
|
|
|
|
2020-02-25 12:57:27 +03:00
|
|
|
def test_load_blp2_raw():
|
|
|
|
with Image.open("Tests/images/blp/blp2_raw.blp") as im:
|
2021-02-21 14:15:56 +03:00
|
|
|
assert_image_equal_tofile(im, "Tests/images/blp/blp2_raw.png")
|
2018-02-18 07:24:39 +03:00
|
|
|
|
|
|
|
|
2020-02-25 12:57:27 +03:00
|
|
|
def test_load_blp2_dxt1():
|
|
|
|
with Image.open("Tests/images/blp/blp2_dxt1.blp") as im:
|
2021-02-21 14:15:56 +03:00
|
|
|
assert_image_equal_tofile(im, "Tests/images/blp/blp2_dxt1.png")
|
2020-02-25 12:57:27 +03:00
|
|
|
|
|
|
|
|
|
|
|
def test_load_blp2_dxt1a():
|
|
|
|
with Image.open("Tests/images/blp/blp2_dxt1a.blp") as im:
|
2021-02-21 14:15:56 +03:00
|
|
|
assert_image_equal_tofile(im, "Tests/images/blp/blp2_dxt1a.png")
|