Pillow/Tests/test_uploader.py

18 lines
461 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)
2018-03-03 12:54:00 +03:00
2017-11-17 22:47:05 +03:00
if __name__ == '__main__':
unittest.main()