mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-23 23:30:34 +03:00
22 lines
630 B
Python
22 lines
630 B
Python
from helper import unittest, PillowTestCase
|
|
|
|
from PIL import features
|
|
|
|
|
|
class TestFeatures(PillowTestCase):
|
|
|
|
def test_check_features(self):
|
|
for feature in features.modules:
|
|
self.assertTrue(features.check_module(feature) in [True, False, None])
|
|
for feature in features.codecs:
|
|
self.assertTrue(features.check_codec(feature) in [True, False])
|
|
|
|
def test_supported_features(self):
|
|
self.assertTrue(type(features.get_supported_modules()) is list)
|
|
self.assertTrue(type(features.get_supported_codecs()) is list)
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|
|
|
|
# End of file
|