mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-13 01:50:48 +03:00
Sanity test for CurImagePlugin.py
This commit is contained in:
parent
1ff695873f
commit
8a73a20af1
23
Tests/test_file_cur.py
Normal file
23
Tests/test_file_cur.py
Normal file
|
@ -0,0 +1,23 @@
|
|||
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
|
Loading…
Reference in New Issue
Block a user