Pillow/Tests/test_file_wal.py

16 lines
309 B
Python
Raw Normal View History

2018-01-29 18:18:06 +03:00
from PIL import WalImageFile
def test_open():
# Arrange
TEST_FILE = "Tests/images/hopper.wal"
2018-01-29 18:18:06 +03:00
# Act
im = WalImageFile.open(TEST_FILE)
2018-01-29 18:18:06 +03:00
# Assert
assert im.format == "WAL"
assert im.format_description == "Quake2 Texture"
assert im.mode == "P"
assert im.size == (128, 128)