test for issue #1561

This commit is contained in:
wiredfool 2015-12-14 20:24:01 +00:00
parent 3b3b559d9e
commit b68bb56b64

View File

@ -165,6 +165,13 @@ class TestFileLibTiff(LibTiffTestCase):
self.assertEqual(
val, value, msg="%s didn't roundtrip" % tag)
# https://github.com/python-pillow/Pillow/issues/1561
requested_fields = ['StripByteCounts',
'RowsPerStrip',
'StripOffsets']
for field in requested_fields:
self.assertTrue(field in reloaded, "%s not in metadata" %field)
def test_g3_compression(self):
i = Image.open('Tests/images/hopper_g4_500.tif')
out = self.tempfile("temp.tif")