Pillow/test/test_image_getim.py
2014-06-03 22:38:56 +03:00

20 lines
363 B
Python

from tester import unittest, PillowTestCase, lena, py3
class TestImageGetIm(PillowTestCase):
def test_sanity(self):
im = lena()
type_repr = repr(type(im.getim()))
if py3:
self.assertIn("PyCapsule", type_repr)
self.assertIsInstance(im.im.id, int)
if __name__ == '__main__':
unittest.main()
# End of file