mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-28 02:46:18 +03:00
19 lines
483 B
Python
19 lines
483 B
Python
from helper import unittest, PillowTestCase, hopper
|
|
|
|
from PIL import Image
|
|
|
|
|
|
class TestUploader(PillowTestCase):
|
|
def check_upload_equal(self):
|
|
result = hopper('P').convert('RGB')
|
|
target = hopper('RGB')
|
|
self.assert_image_equal(result, target)
|
|
|
|
def check_upload_similar(self):
|
|
result = hopper('P').convert('RGB')
|
|
target = hopper('RGB')
|
|
self.assert_image_similar(result, target, 0)
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|