Added test and testfile for issue #302

This commit is contained in:
eliempje 2014-05-14 23:14:55 +02:00
parent 91db774995
commit a712cec02b
2 changed files with 7 additions and 0 deletions

Binary file not shown.

View File

@ -17,6 +17,8 @@ file1_compare_scale2 = "Tests/images/zero_bb_scale2.png"
file2_compare = "Tests/images/non_zero_bb.png"
file2_compare_scale2 = "Tests/images/non_zero_bb_scale2.png"
# EPS test files with binary preview
file3 = "Tests/images/binary_preview_map.eps"
def test_sanity():
# Regular scale
@ -132,4 +134,9 @@ def test_thumbnail():
assert_equal(max(image1.size), max(new_size))
assert_equal(max(image2.size), max(new_size))
def test_read_binary_preview():
# Issue 302
# open image with binary preview
image1 = Image.open(file3)
# End of file