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

Method testReadParsing

test/IECore/ParameterParser.py:99–107  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

97 a()
98
99 def testReadParsing( self ) :
100
101 l = IECore.ClassLoader( IECore.SearchPath( os.path.join( "test", "IECore", "ops" )) )
102 a = l.load( os.path.join( "maths", "multiply" ) )()
103
104 p = a.parameters()
105 IECore.ParameterParser().parse( ["-a", "read:" + os.path.join( "test", "IECore", "data", "cobFiles", "intDataTen.cob" ), "-b", "30" ], p )
106
107 self.assertEqual( a(), IECore.IntData( 300 ) )
108
109 def testSerialising( self ) :
110

Callers

nothing calls this directly

Calls 5

loadMethod · 0.95
SearchPathMethod · 0.80
joinMethod · 0.80
parametersMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected