mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			367 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			367 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()
 | 
						|
 | 
						|
# End of file
 |