mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 10:26:19 +03:00
dbe9f85c7d
* Drop unittest2 requirement * Use set literals * Use dict/set comprehension * Use str.format() automatic numbering
18 lines
352 B
Python
18 lines
352 B
Python
from helper import unittest, PillowTestCase, hopper, py3
|
|
|
|
|
|
class TestImageGetIm(PillowTestCase):
|
|
|
|
def test_sanity(self):
|
|
im = hopper()
|
|
type_repr = repr(type(im.getim()))
|
|
|
|
if py3:
|
|
self.assertIn("PyCapsule", type_repr)
|
|
|
|
self.assertIsInstance(im.im.id, int)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|