Merge pull request #3 from hugovk/patch-1

Fix tests so image2 is resized and thumbnailed
This commit is contained in:
eliempje 2014-05-09 01:21:34 +02:00
commit 91db774995

View File

@ -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