Pillow/Tests/test_uploader.py

17 lines
460 B
Python
Raw Normal View History

2017-11-17 22:47:05 +03:00
from helper import unittest, PillowTestCase, hopper
class TestUploader(PillowTestCase):
2017-11-25 14:01:33 +03:00
def check_upload_equal(self):
2017-11-17 22:47:05 +03:00
result = hopper('P').convert('RGB')
target = hopper('RGB')
self.assert_image_equal(result, target)
2017-11-25 14:01:33 +03:00
def check_upload_similar(self):
2017-11-17 22:47:05 +03:00
result = hopper('P').convert('RGB')
target = hopper('RGB')
self.assert_image_similar(result, target, 0)
if __name__ == '__main__':
unittest.main()