py3k: Add Photoshop sanity check

This commit is contained in:
Brian Crowell 2012-10-24 08:24:26 -05:00 committed by Brian Crowell
parent 2972b2178e
commit 9921d838e4
2 changed files with 14 additions and 0 deletions

BIN
Images/lena.psd Normal file

Binary file not shown.

14
Tests/test_file_psd.py Normal file
View 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")