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

Method testUserData

test/IECore/CompoundParameterTest.py:49–55  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

47 self.assertEqual( IECore.RefCounted.numWrappedInstances(), 0 )
48
49 def testUserData( self ):
50
51 p = IECore.CompoundParameter( "n", "d", [], userData = IECore.CompoundObject( { "test": IECore.StringData("hi"), "test2": IECore.IntData(2), "test3": IECore.CompoundObject( { "test4": IECore.FloatData( 1.0 ) } ) } ) )
52
53 p2 = IECore.CompoundParameter( "n", "d", [], userData = { "test": IECore.StringData("hi"), "test2": IECore.IntData(2), "test3": { "test4": IECore.FloatData( 1.0 ) } } )
54
55 self.assertEqual( p.userData(), p2.userData() )
56
57 def testDerivedClassElement( self ):
58

Callers

nothing calls this directly

Calls 3

CompoundParameterMethod · 0.80
CompoundObjectMethod · 0.80
userDataMethod · 0.45

Tested by

no test coverage detected