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

Method test

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

Source from the content-addressed store, hash-verified

955class TestIntVectorParameter( unittest.TestCase ) :
956
957 def test( self ) :
958
959 dv = IECore.IntVectorData()
960
961 p = IECore.IntVectorParameter(
962 name = "f",
963 description = "d",
964 defaultValue = dv,
965 presets = (
966 ( "preset1", IECore.IntVectorData( [ 1, 2 ] ) ),
967 )
968 )
969
970 self.assertEqual( p.name, "f" )
971 self.assertEqual( p.description, "d" )
972 self.assertEqual( p.userData(), IECore.CompoundObject() )
973 self.assertEqual( p.valueValid()[0], True )
974 p.validate()
975
976class TestTransformationMatixParameter( unittest.TestCase ) :
977

Callers

nothing calls this directly

Calls 4

CompoundObjectMethod · 0.80
userDataMethod · 0.45
valueValidMethod · 0.45
validateMethod · 0.45

Tested by

no test coverage detected