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

Method testSetAndGet

test/IECore/FrameListParameter.py:72–79  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

70 self.assertEqual( p.getFrameListValue().asList(), [1] )
71
72 def testSetAndGet( self ) :
73
74 p = IECore.FrameListParameter( "n", "d", "" )
75 p.setFrameListValue( IECore.FrameRange( 0, 100, 2 ) )
76 self.assertEqual( p.getTypedValue(), "0-100x2" )
77
78 self.assertEqual( p.getFrameListValue().asList(), IECore.FrameRange( 0, 100, 2 ).asList() )
79 self.assertEqual( p.getFrameListValue( IECore.StringData( "0-100x2" ) ).asList(), IECore.FrameRange( 0, 100, 2 ).asList() )
80
81 def testDefaultValueAsFrameList( self ) :
82

Callers

nothing calls this directly

Calls 5

setFrameListValueMethod · 0.95
getFrameListValueMethod · 0.95
FrameListParameterMethod · 0.80
FrameRangeMethod · 0.80
asListMethod · 0.45

Tested by

no test coverage detected