mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-04 21:50:54 +03:00
Fix tests so image2 is resized and thumbnailed
This commit is contained in:
parent
f7817b93cf
commit
7a9badf18e
|
@ -110,7 +110,7 @@ def test_resize():
|
||||||
|
|
||||||
# Act
|
# Act
|
||||||
image1 = image1.resize(new_size)
|
image1 = image1.resize(new_size)
|
||||||
image2 = image1.resize(new_size)
|
image2 = image2.resize(new_size)
|
||||||
|
|
||||||
# Assert
|
# Assert
|
||||||
assert_equal(image1.size, new_size)
|
assert_equal(image1.size, new_size)
|
||||||
|
@ -126,7 +126,7 @@ def test_thumbnail():
|
||||||
|
|
||||||
# Act
|
# Act
|
||||||
image1.thumbnail(new_size)
|
image1.thumbnail(new_size)
|
||||||
image1.thumbnail(new_size)
|
image2.thumbnail(new_size)
|
||||||
|
|
||||||
# Assert
|
# Assert
|
||||||
assert_equal(image1.size, new_size)
|
assert_equal(image1.size, new_size)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user