Simple spider test. Test image created with Pillow.

This commit is contained in:
hugovk 2014-05-26 20:09:12 +03:00
parent 24cb7bf3df
commit 268c419d7c
2 changed files with 15 additions and 0 deletions

BIN
Tests/images/lena.spider Normal file

Binary file not shown.

15
Tests/test_file_spider.py Normal file
View 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