Pillow/Tests/test_imageshow.py

23 lines
449 B
Python
Raw Normal View History

2014-07-07 21:03:50 +04:00
from helper import unittest, PillowTestCase
from PIL import Image
from PIL import ImageShow
2014-06-10 13:10:47 +04:00
class TestImageShow(PillowTestCase):
def test_sanity(self):
dir(Image)
dir(ImageShow)
2017-03-01 12:20:18 +03:00
def test_viewer(self):
viewer = ImageShow.Viewer()
self.assertIsNone(viewer.get_format(None))
self.assertRaises(NotImplementedError, lambda: viewer.get_command(None))
2014-06-10 13:10:47 +04:00
if __name__ == '__main__':
unittest.main()