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

Method testIO

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

Source from the content-addressed store, hash-verified

72 self.assertNotEqual( d, dd )
73
74 def testIO( self ) :
75
76 s = IECore.Rampff( ( ( 0, 1 ), ( 1, 2 ), ( 2, 3 ), ( 3, 4 ) ), IECore.RampInterpolation.MonotoneCubic )
77
78 sd = IECore.RampffData( s )
79
80 IECore.ObjectWriter( sd, os.path.join( "test", "IECore", "RampData.cob" ) ).write()
81
82 sdd = IECore.ObjectReader( os.path.join( "test", "IECore", "RampData.cob" ) ).read()
83
84 self.assertEqual( sd, sdd )
85
86 def testColorIO( self ) :
87

Callers

nothing calls this directly

Calls 5

ObjectWriterMethod · 0.80
joinMethod · 0.80
ObjectReaderMethod · 0.80
writeMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected