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

Method testUserData

test/IECore/Parameters.py:789–795  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

787 self.assertTrue( not p.valueValid( IECore.IntData( 1 ) )[0] )
788
789 def testUserData( self ) :
790
791 p = IECore.ObjectParameter( name = "name", description = "description", defaultValue = IECore.ObjectVector(), type = IECore.TypeId.ObjectVector, userData = IECore.CompoundObject( { "A" : IECore.IntData( 10 ) } ) )
792 self.assertEqual( p.userData(), IECore.CompoundObject( { "A" : IECore.IntData( 10 ) } ) )
793
794 p = IECore.ObjectParameter( name = "name", description = "description", defaultValue = IECore.ObjectVector(), type = IECore.TypeId.ObjectVector )
795 self.assertEqual (p.userData(), IECore.CompoundObject() )
796
797 def testErrorMessage( self ) :
798

Callers

nothing calls this directly

Calls 4

ObjectParameterMethod · 0.80
ObjectVectorMethod · 0.80
CompoundObjectMethod · 0.80
userDataMethod · 0.45

Tested by

no test coverage detected