mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
24 lines
456 B
Python
24 lines
456 B
Python
from helper import unittest, PillowTestCase
|
|
|
|
from PIL import Image, CurImagePlugin
|
|
|
|
|
|
class TestFileCur(PillowTestCase):
|
|
|
|
def test_sanity(self):
|
|
# Arrange
|
|
test_file = "Tests/images/deerstalker.cur"
|
|
|
|
# Act
|
|
im = Image.open(test_file)
|
|
|
|
# Assert
|
|
self.assertEqual(im.size, (32, 32))
|
|
self.assertIsInstance(im, CurImagePlugin.CurImageFile)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|
|
|
|
# End of file
|