Pillow/Tests/test_file_mcidas.py

18 lines
400 B
Python

from helper import unittest, PillowTestCase
from PIL import McIdasImagePlugin
class TestFileMcIdas(PillowTestCase):
def test_invalid_file(self):
invalid_file = "Tests/images/flower.jpg"
self.assertRaises(SyntaxError,
lambda:
McIdasImagePlugin.McIdasImageFile(invalid_file))
if __name__ == '__main__':
unittest.main()