Pillow/Tests/test_uploader.py
2017-11-17 19:47:05 +00:00

19 lines
481 B
Python

from helper import unittest, PillowTestCase, hopper
from PIL import Image
class TestUploader(PillowTestCase):
def test_upload_equal(self):
result = hopper('P').convert('RGB')
target = hopper('RGB')
self.assert_image_equal(result, target)
def test_upload_similar(self):
result = hopper('P').convert('RGB')
target = hopper('RGB')
self.assert_image_similar(result, target, 0)
if __name__ == '__main__':
unittest.main()