( self )
| 84 | self.assertLessEqual( max( size.x, size.y ), int( 0.5 * maxResolution ) ) |
| 85 | |
| 86 | def testDataWindow( self ) : |
| 87 | |
| 88 | l = IECoreGL.TextureLoader( IECore.SearchPath( "." + os.path.sep ) ) |
| 89 | |
| 90 | self.assertEqual( |
| 91 | l.load( os.path.join( "test", "IECoreImage", "data", "exr", "imageCropDataWindow.exr" ) ).imagePrimitive(), |
| 92 | l.load( os.path.join( "test", "IECoreImage", "data", "exr", "imageCropDataWindowMatched.exr" ) ).imagePrimitive() |
| 93 | ) |
| 94 | |
| 95 | self.assertEqual( |
| 96 | l.load( os.path.join( "test", "IECoreImage", "data", "exr", "oversizeDataWindow.exr" ) ).imagePrimitive().dataWindow, |
| 97 | imath.Box2i( imath.V2i(0,0), imath.V2i(255,255) ) |
| 98 | ) |
| 99 | |
| 100 | if __name__ == "__main__": |
| 101 | unittest.main() |
nothing calls this directly
no test coverage detected