Pillow/Tests/test_uploader.py

14 lines
403 B
Python
Raw Normal View History

from .helper import PillowTestCase, hopper
2017-11-17 22:47:05 +03:00
class TestUploader(PillowTestCase):
2017-11-25 14:01:33 +03:00
def check_upload_equal(self):
2019-06-13 18:54:46 +03:00
result = hopper("P").convert("RGB")
target = hopper("RGB")
2017-11-17 22:47:05 +03:00
self.assert_image_equal(result, target)
2017-11-25 14:01:33 +03:00
def check_upload_similar(self):
2019-06-13 18:54:46 +03:00
result = hopper("P").convert("RGB")
target = hopper("RGB")
2017-11-17 22:47:05 +03:00
self.assert_image_similar(result, target, 0)