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

Method testCompoundData

test/IECore/ObjectIO.py:152–163  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

150 self.assertEqual( d, dd );
151
152 def testCompoundData( self ) :
153
154 iface = IECore.IndexedIO.create( os.path.join( "test", "o.fio" ), [], IECore.IndexedIO.OpenMode.Write )
155
156 d = IECore.CompoundData()
157 d["A"] = IECore.IntData( 10 )
158 d["B"] = IECore.StringData( "hithere" )
159 self.assertEqual( d["B"].value, "hithere" )
160
161 d.save( iface, "test" )
162 dd = IECore.Object.load( iface, "test" )
163 self.assertEqual( d, dd )
164
165 def testDataTypes( self ):
166

Callers

nothing calls this directly

Calls 5

saveMethod · 0.95
joinMethod · 0.80
CompoundDataMethod · 0.80
createMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected