Pillow/Tests/test_image_getim.py

18 lines
352 B
Python
Raw Normal View History

from helper import unittest, PillowTestCase, hopper, py3
2016-02-05 01:57:13 +03:00
2014-06-10 13:10:47 +04:00
class TestImageGetIm(PillowTestCase):
2014-06-10 13:10:47 +04:00
def test_sanity(self):
im = hopper()
2014-06-10 13:10:47 +04:00
type_repr = repr(type(im.getim()))
2014-06-10 13:10:47 +04:00
if py3:
self.assertIn("PyCapsule", type_repr)
self.assertIsInstance(im.im.id, int)
2014-06-10 13:10:47 +04:00
if __name__ == '__main__':
unittest.main()