mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
py3k: Add Photoshop sanity check
This commit is contained in:
parent
2972b2178e
commit
9921d838e4
BIN
Images/lena.psd
Normal file
BIN
Images/lena.psd
Normal file
Binary file not shown.
14
Tests/test_file_psd.py
Normal file
14
Tests/test_file_psd.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from tester import *
|
||||
|
||||
from PIL import Image
|
||||
|
||||
# sample ppm stream
|
||||
file = "Images/lena.psd"
|
||||
data = open(file, "rb").read()
|
||||
|
||||
def test_sanity():
|
||||
im = Image.open(file)
|
||||
im.load()
|
||||
assert_equal(im.mode, "RGB")
|
||||
assert_equal(im.size, (128, 128))
|
||||
assert_equal(im.format, "PSD")
|
Loading…
Reference in New Issue
Block a user