mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 10:46:16 +03:00
Merge pull request #3 from hugovk/patch-1
Fix tests so image2 is resized and thumbnailed
This commit is contained in:
commit
91db774995
|
@ -110,7 +110,7 @@ def test_resize():
|
|||
|
||||
# Act
|
||||
image1 = image1.resize(new_size)
|
||||
image2 = image1.resize(new_size)
|
||||
image2 = image2.resize(new_size)
|
||||
|
||||
# Assert
|
||||
assert_equal(image1.size, new_size)
|
||||
|
@ -126,10 +126,10 @@ def test_thumbnail():
|
|||
|
||||
# Act
|
||||
image1.thumbnail(new_size)
|
||||
image1.thumbnail(new_size)
|
||||
image2.thumbnail(new_size)
|
||||
|
||||
# Assert
|
||||
assert_equal(image1.size, new_size)
|
||||
assert_equal(image2.size, new_size)
|
||||
assert_equal(max(image1.size), max(new_size))
|
||||
assert_equal(max(image2.size), max(new_size))
|
||||
|
||||
# End of file
|
||||
|
|
Loading…
Reference in New Issue
Block a user