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

Method testMultipleRef

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

Source from the content-addressed store, hash-verified

185 self.assertEqual( d, dd )
186
187 def testMultipleRef( self ) :
188
189 iface = IECore.IndexedIO.create( os.path.join( "test", "o.fio" ), [], IECore.IndexedIO.OpenMode.Write )
190
191 d = IECore.CompoundData()
192 i = IECore.IntData( 100 )
193 d["ONE"] = i
194 d["TWO"] = i
195
196 self.assertTrue( d["ONE"].isSame( d["TWO"] ) )
197
198 d.save( iface, "test" )
199
200 dd = IECore.Object.load( iface, "test" )
201 self.assertEqual( d, dd )
202 self.assertTrue( dd["ONE"].isSame( dd["TWO"] ) )
203
204 def testSaveInCurrentDir( self ) :
205

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