File: test_file_wal.py

package info (click to toggle)
pillow 8.1.2%2Bdfsg-0.3%2Bdeb11u2
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 65,628 kB
  • sloc: python: 35,630; ansic: 31,009; makefile: 388; javascript: 114; sh: 77
file content (15 lines) | stat: -rw-r--r-- 309 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from PIL import WalImageFile


def test_open():
    # Arrange
    TEST_FILE = "Tests/images/hopper.wal"

    # Act
    im = WalImageFile.open(TEST_FILE)

    # Assert
    assert im.format == "WAL"
    assert im.format_description == "Quake2 Texture"
    assert im.mode == "P"
    assert im.size == (128, 128)