Pillow/Tests/test_file_psd.py
2015-04-24 18:24:52 +10:00

24 lines
475 B
Python

from helper import unittest, PillowTestCase
from PIL import Image
# sample ppm stream
test_file = "Tests/images/hopper.psd"
data = open(test_file, "rb").read()
class TestImagePsd(PillowTestCase):
def test_sanity(self):
im = Image.open(test_file)
im.load()
self.assertEqual(im.mode, "RGB")
self.assertEqual(im.size, (128, 128))
self.assertEqual(im.format, "PSD")
if __name__ == '__main__':
unittest.main()
# End of file