Pillow/Tests/test_image_getim.py

20 lines
363 B
Python
Raw Normal View History

2014-07-07 21:03:50 +04:00
from helper import unittest, PillowTestCase, lena, py3
2014-06-10 13:10:47 +04:00
class TestImageGetIm(PillowTestCase):
2014-06-10 13:10:47 +04:00
def test_sanity(self):
im = lena()
type_repr = repr(type(im.getim()))
2014-06-10 13:10:47 +04:00
if py3:
self.assertIn("PyCapsule", type_repr)
2014-06-10 13:10:47 +04:00
self.assertIsInstance(im.im.id, int)
2014-06-10 13:10:47 +04:00
if __name__ == '__main__':
unittest.main()
# End of file