mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Simple spider test. Test image created with Pillow.
This commit is contained in:
parent
24cb7bf3df
commit
268c419d7c
BIN
Tests/images/lena.spider
Normal file
BIN
Tests/images/lena.spider
Normal file
Binary file not shown.
15
Tests/test_file_spider.py
Normal file
15
Tests/test_file_spider.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
from tester import *
|
||||
|
||||
from PIL import Image
|
||||
|
||||
test_file = "Tests/images/lena.spider"
|
||||
|
||||
|
||||
def test_sanity():
|
||||
im = Image.open(test_file)
|
||||
im.load()
|
||||
assert_equal(im.mode, "F")
|
||||
assert_equal(im.size, (128, 128))
|
||||
assert_equal(im.format, "SPIDER")
|
||||
|
||||
# End of file
|
Loading…
Reference in New Issue
Block a user