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

Method testRepr

test/IECore/RampDataTest.py:100–111  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

98 self.assertEqual( sd, sdd )
99
100 def testRepr( self ) :
101
102 s = IECore.RampfColor3f(
103 ( ( 0, imath.Color3f(1) ), ( 1, imath.Color3f(2) ), ( 2, imath.Color3f(3) ), ( 3, imath.Color3f(4) ) ),
104 IECore.RampInterpolation.BSpline
105 )
106
107 sd = IECore.RampfColor3fData( s )
108
109 self.assertEqual( repr(sd), "IECore.RampfColor3fData( " + repr(s) + " )" )
110
111 self.assertEqual( sd, eval( repr(sd) ) )
112
113 def testHash( self ) :
114

Callers

nothing calls this directly

Calls 1

reprFunction · 0.50

Tested by

no test coverage detected