Pillow/Tests/test_image_getim.py

11 lines
267 B
Python
Raw Normal View History

from .helper import PillowTestCase, hopper
2016-02-05 01:57:13 +03:00
2014-06-10 13:10:47 +04:00
class TestImageGetIm(PillowTestCase):
def test_sanity(self):
im = hopper()
2014-06-10 13:10:47 +04:00
type_repr = repr(type(im.getim()))
2019-09-26 15:12:28 +03:00
self.assertIn("PyCapsule", type_repr)
self.assertIsInstance(im.im.id, int)