mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 12:17:14 +03:00
5e676ea0bd
Conflicts: Tests/bench_cffi_access.py Tests/test_file_palm.py Tests/test_format_hsv.py Tests/test_image_putdata.py Tests/test_locale.py Tests/test_mode_i16.py
19 lines
430 B
Python
19 lines
430 B
Python
from helper import unittest, PillowTestCase, hopper
|
|
|
|
|
|
class TestImageCopy(PillowTestCase):
|
|
|
|
def test_copy(self):
|
|
def copy(mode):
|
|
im = hopper(mode)
|
|
out = im.copy()
|
|
self.assertEqual(out.mode, mode)
|
|
self.assertEqual(out.size, im.size)
|
|
for mode in "1", "P", "L", "RGB", "I", "F":
|
|
copy(mode)
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|
|
|
|
# End of file
|