Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Pillow / Tests / test_uploader.py
Size: Mime:
from helper import unittest, 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)


if __name__ == '__main__':
    unittest.main()