mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 09:26:16 +03:00
tests for issue #279
This commit is contained in:
parent
ac1d43bdef
commit
d67d4116b5
BIN
Tests/images/g4-fillorder-test.png
Normal file
BIN
Tests/images/g4-fillorder-test.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 989 B |
BIN
Tests/images/g4-fillorder-test.tif
Normal file
BIN
Tests/images/g4-fillorder-test.tif
Normal file
Binary file not shown.
|
@ -70,6 +70,14 @@ def test_g4_eq_png():
|
|||
|
||||
assert_image_equal(g4, png)
|
||||
|
||||
# see https://github.com/python-imaging/Pillow/issues/279
|
||||
def test_g4_fillorder_eq_png():
|
||||
""" Checking that we're actually getting the data that we expect"""
|
||||
png = Image.open('Tests/images/g4-fillorder-test.png')
|
||||
g4 = Image.open('Tests/images/g4-fillorder-test.tif')
|
||||
|
||||
assert_image_equal(g4, png)
|
||||
|
||||
def test_g4_write():
|
||||
"""Checking to see that the saved image is the same as what we wrote"""
|
||||
file = "Tests/images/lena_g4_500.tif"
|
||||
|
@ -95,3 +103,5 @@ def test_adobe_deflate_tiff():
|
|||
assert_equal(im.size, (278, 374))
|
||||
assert_equal(im.tile[0][:3], ('tiff_adobe_deflate', (0, 0, 278, 374), 0))
|
||||
assert_no_exception(lambda: im.load())
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user