Skip to content

Commit

Permalink
Merge pull request #3 from hugovk/patch-1
Browse files Browse the repository at this point in the history
Fix tests so image2 is resized and thumbnailed
  • Loading branch information
eliempje committed May 8, 2014
2 parents f7817b9 + 11227e5 commit 91db774
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/test_file_eps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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

0 comments on commit 91db774

Please sign in to comment.