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

Method testMultiply

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

Source from the content-addressed store, hash-verified

42class testParameterParser( unittest.TestCase ) :
43
44 def testMultiply( self ) :
45
46 l = IECore.ClassLoader( IECore.SearchPath( os.path.join( "test", "IECore", "ops" ) ) )
47 a = l.load( os.path.join( "maths", "multiply" ) )()
48
49 p = a.parameters()
50 IECore.ParameterParser().parse( ["-a", "10", "-b", "20" ], p )
51
52 self.assertEqual( a(), IECore.IntData( 200 ) )
53
54 def testParameterTypes( self ) :
55

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