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

Method testNewOp

test/IECore/Op.py:53–59  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

51class TestPythonOp( unittest.TestCase ) :
52
53 def testNewOp( self ) :
54
55 o = PythonOp()
56 self.assertEqual( o.operate(), IECore.StringData( "john" ) )
57 o.parameters()["name"].setValue( IECore.StringData( "jim" ) )
58 self.assertEqual( o.operate(), IECore.StringData( "jim" ) )
59 self.assertEqual( o(), IECore.StringData( "jim" ) )
60
61 def testSmartOp( self ):
62 """ test smart operate function"""

Callers

nothing calls this directly

Calls 4

operateMethod · 0.80
PythonOpClass · 0.70
setValueMethod · 0.45
parametersMethod · 0.45

Tested by

no test coverage detected