mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
20 lines
489 B
Python
20 lines
489 B
Python
from helper import unittest, PillowTestCase, tearDownModule, lena
|
|
|
|
|
|
class TestImageResize(PillowTestCase):
|
|
|
|
def test_resize(self):
|
|
def resize(mode, size):
|
|
out = lena(mode).resize(size)
|
|
self.assertEqual(out.mode, mode)
|
|
self.assertEqual(out.size, size)
|
|
for mode in "1", "P", "L", "RGB", "I", "F":
|
|
resize(mode, (100, 100))
|
|
resize(mode, (200, 200))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|
|
|
|
# End of file
|