MCPcopy Create free account
hub / github.com/ImageEngine/cortex / testLoadGreyscale

Method testLoadGreyscale

test/IECoreGL/TextureLoaderTest.py:54–58  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

52 self.assertTrue( isinstance( t, IECoreGL.ColorTexture ) )
53
54 def testLoadGreyscale( self ) :
55
56 l = IECoreGL.TextureLoader( IECore.SearchPath( "." + os.path.sep ) )
57 t = l.load( os.path.join( "test", "IECoreImage", "data", "jpg", "greyscaleCheckerBoard.jpg" ) )
58 self.assertTrue( isinstance( t, IECoreGL.LuminanceTexture ) )
59
60 def testMaximumTextureResolution( self ) :
61

Callers

nothing calls this directly

Calls 4

loadMethod · 0.95
TextureLoaderMethod · 0.80
SearchPathMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected