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

Method test

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

Source from the content-addressed store, hash-verified

730class TestValidation( unittest.TestCase ) :
731
732 def test( self ) :
733
734 i = IECore.IntParameter( name = "n", description = "d", defaultValue = 10 )
735 self.assertTrue( i.valueValid( IECore.IntData( 1 ) ) )
736 self.assertTrue( not i.valueValid( IECore.FloatData( 1 ) )[0] )
737
738 def testLazyValidation( self ) :
739

Callers

nothing calls this directly

Calls 1

valueValidMethod · 0.45

Tested by

no test coverage detected