Replace lena with hopper

This commit is contained in:
Hugo 2014-09-23 16:16:04 +03:00
parent a5fc5e3e7e
commit 91aa29ca2b

View File

@ -36,7 +36,7 @@ class TestFileLibTiff(LibTiffTestCase):
def test_g4_tiff(self):
"""Test the ordinary file path load path"""
file = "Tests/images/lena_g4_500.tif"
file = "Tests/images/hopper_g4_500.tif"
im = Image.open(file)
self.assertEqual(im.size, (500, 500))
@ -50,7 +50,7 @@ class TestFileLibTiff(LibTiffTestCase):
def test_g4_tiff_file(self):
"""Testing the string load path"""
file = "Tests/images/lena_g4_500.tif"
file = "Tests/images/hopper_g4_500.tif"
with open(file, 'rb') as f:
im = Image.open(f)
@ -60,7 +60,7 @@ class TestFileLibTiff(LibTiffTestCase):
def test_g4_tiff_bytesio(self):
"""Testing the stringio loading code path"""
from io import BytesIO
file = "Tests/images/lena_g4_500.tif"
file = "Tests/images/hopper_g4_500.tif"
s = BytesIO()
with open(file, 'rb') as f:
s.write(f.read())
@ -72,8 +72,8 @@ class TestFileLibTiff(LibTiffTestCase):
def test_g4_eq_png(self):
""" Checking that we're actually getting the data that we expect"""
png = Image.open('Tests/images/lena_bw_500.png')
g4 = Image.open('Tests/images/lena_g4_500.tif')
png = Image.open('Tests/images/hopper_bw_500.png')
g4 = Image.open('Tests/images/hopper_g4_500.tif')
self.assert_image_equal(g4, png)
@ -87,7 +87,7 @@ class TestFileLibTiff(LibTiffTestCase):
def test_g4_write(self):
"""Checking to see that the saved image is the same as what we wrote"""
file = "Tests/images/lena_g4_500.tif"
file = "Tests/images/hopper_g4_500.tif"
orig = Image.open(file)
out = self.tempfile("temp.tif")
@ -156,7 +156,7 @@ class TestFileLibTiff(LibTiffTestCase):
value, reloaded[tag], "%s didn't roundtrip" % tag)
def test_g3_compression(self):
i = Image.open('Tests/images/lena_g4_500.tif')
i = Image.open('Tests/images/hopper_g4_500.tif')
out = self.tempfile("temp.tif")
i.save(out, compression='group3')
@ -213,7 +213,7 @@ class TestFileLibTiff(LibTiffTestCase):
def test_g4_string_info(self):
"""Tests String data in info directory"""
file = "Tests/images/lena_g4_500.tif"
file = "Tests/images/hopper_g4_500.tif"
orig = Image.open(file)
out = self.tempfile("temp.tif")
@ -302,7 +302,7 @@ class TestFileLibTiff(LibTiffTestCase):
self.assertRaises(IOError, lambda: im.save(out, compression='group4'))
def test_fp_leak(self):
im = Image.open("Tests/images/lena_g4_500.tif")
im = Image.open("Tests/images/hopper_g4_500.tif")
fn = im.fp.fileno()
os.fstat(fn)