Pillow/Tests/test_file_mic.py
2015-07-03 16:22:56 +10:00

19 lines
377 B
Python

from helper import unittest, PillowTestCase
from PIL import MicImagePlugin
class TestFileMic(PillowTestCase):
def test_invalid_file(self):
invalid_file = "Tests/images/flower.jpg"
self.assertRaises(SyntaxError,
lambda: MicImagePlugin.MicImageFile(invalid_file))
if __name__ == '__main__':
unittest.main()
# End of file