mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 12:17:14 +03:00
25 lines
455 B
Python
25 lines
455 B
Python
from helper import unittest, PillowTestCase, hopper
|
|
|
|
from PIL import Image
|
|
|
|
|
|
class TestFileMsp(PillowTestCase):
|
|
|
|
def test_sanity(self):
|
|
|
|
file = self.tempfile("temp.msp")
|
|
|
|
hopper("1").save(file)
|
|
|
|
im = Image.open(file)
|
|
im.load()
|
|
self.assertEqual(im.mode, "1")
|
|
self.assertEqual(im.size, (128, 128))
|
|
self.assertEqual(im.format, "MSP")
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|
|
|
|
# End of file
|