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

Method testIO

test/IECore/SplineDataTest.py:74–88  ·  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.Splineff( IECore.CubicBasisf.bezier() )
77 s[0] = 1
78 s[1] = 2
79 s[2] = 3
80 s[3] = 4
81
82 sd = IECore.SplineffData( s )
83
84 IECore.ObjectWriter( sd, os.path.join( "test", "IECore", "SplineData.cob" ) ).write()
85
86 sdd = IECore.ObjectReader( os.path.join( "test", "IECore", "SplineData.cob" ) ).read()
87
88 self.assertEqual( sd, sdd )
89
90 def testColorIO( self ) :
91

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