Pillow/Tests/test_uploader.py
2019-06-13 18:54:46 +03:00

14 lines
403 B
Python

from .helper import PillowTestCase, hopper
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)