mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
String attr test case
This commit is contained in:
parent
758da6c581
commit
6357b4707c
|
@ -93,6 +93,8 @@ def test_g4_write():
|
||||||
_assert_noerr(reread)
|
_assert_noerr(reread)
|
||||||
assert_image_equal(reread, rot)
|
assert_image_equal(reread, rot)
|
||||||
|
|
||||||
|
assert_equal(reread.info['compression'], orig.info['compression'])
|
||||||
|
|
||||||
assert_false(orig.tobytes() == reread.tobytes())
|
assert_false(orig.tobytes() == reread.tobytes())
|
||||||
|
|
||||||
def test_adobe_deflate_tiff():
|
def test_adobe_deflate_tiff():
|
||||||
|
@ -153,3 +155,17 @@ def test_big_endian():
|
||||||
assert_equal(reread.info['compression'], im.info['compression'])
|
assert_equal(reread.info['compression'], im.info['compression'])
|
||||||
assert_equal(reread.getpixel((0,0)), 480)
|
assert_equal(reread.getpixel((0,0)), 480)
|
||||||
|
|
||||||
|
def test_g4_string_info():
|
||||||
|
"""Tests String data in info directory"""
|
||||||
|
file = "Tests/images/lena_g4_500.tif"
|
||||||
|
orig = Image.open(file)
|
||||||
|
|
||||||
|
out = tempfile("temp.tif")
|
||||||
|
|
||||||
|
orig.tag[269] = 'temp.tif'
|
||||||
|
orig.save(out)
|
||||||
|
|
||||||
|
reread = Image.open(out)
|
||||||
|
assert_equal('temp.tif', reread.tag[269])
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user