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

Method testRepr

test/IECore/SplineDataTest.py:106–118  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

104 self.assertEqual( sd, sdd )
105
106 def testRepr( self ) :
107
108 s = IECore.SplinefColor3f( IECore.CubicBasisf.linear() )
109 s[0] = imath.Color3f( 1 )
110 s[1] = imath.Color3f( 2 )
111 s[2] = imath.Color3f( 3 )
112 s[3] = imath.Color3f( 4 )
113
114 sd = IECore.SplinefColor3fData( s )
115
116 self.assertEqual( repr(sd), "IECore.SplinefColor3fData( " + repr(s) + " )" )
117
118 self.assertEqual( sd, eval( repr(sd) ) )
119
120 def testHash( self ) :
121

Callers

nothing calls this directly

Calls 2

linearMethod · 0.80
reprFunction · 0.50

Tested by

no test coverage detected