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

Method testStaticLoaders

test/IECore/ClassLoader.py:62–69  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

60 self.assertEqual( l.classNames(), ["bad", "classParameterTest", "classVectorParameterTest", "colorSplineInput", "compoundObjectInOut", "floatParameter", os.path.join( "maths", "multiply" ), "matrixParameter", "meshMerge", "objectVectorInOut", "parameterTypes", os.path.join( "path.With.Dot", "multiply" ), "presetParsing", "splineInput", 'stringParsing', "unstorable" ] )
61
62 def testStaticLoaders( self ) :
63
64 l = IECore.ClassLoader.defaultOpLoader()
65 ll = IECore.ClassLoader.defaultOpLoader()
66 lll = IECore.ClassLoader.defaultLoader( "IECORE_OP_PATHS" )
67 self.assertTrue( l is ll )
68 self.assertTrue( l is lll )
69 self.assertTrue( isinstance( l, IECore.ClassLoader ) )
70
71 def testRefresh( self ) :
72

Callers

nothing calls this directly

Calls 2

defaultOpLoaderMethod · 0.80
defaultLoaderMethod · 0.80

Tested by

no test coverage detected