mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Thumbnail tests for https://github.com/python-imaging/Pillow/pull/619
This commit is contained in:
parent
134295bfd4
commit
23eb9e1de8
|
@ -117,4 +117,19 @@ def test_resize():
|
|||
assert_equal(image2.size, new_size)
|
||||
|
||||
|
||||
def test_thumbnail():
|
||||
# Issue #619
|
||||
# Arrange
|
||||
image1 = Image.open(file1)
|
||||
image2 = Image.open(file2)
|
||||
new_size = (100, 100)
|
||||
|
||||
# Act
|
||||
image1.thumbnail(new_size)
|
||||
image1.thumbnail(new_size)
|
||||
|
||||
# Assert
|
||||
assert_equal(image1.size, new_size)
|
||||
assert_equal(image2.size, new_size)
|
||||
|
||||
# End of file
|
||||
|
|
Loading…
Reference in New Issue
Block a user