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

Method testDefaultInstance

test/IECore/CompoundObject.py:146–156  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

144 self.assertEqual( o.items(), [ ( "a", IECore.IntData( 1 ) ) ] )
145
146 def testDefaultInstance( self ) :
147
148 o = IECore.CompoundObject.defaultInstance()
149
150 o["a"] = IECore.IntData( 10 )
151
152 self.assertTrue( o["a"].isSame( IECore.CompoundObject.defaultInstance()["a"] ) )
153
154 del o["a"]
155
156 self.assertTrue( "a" not in IECore.CompoundObject.defaultInstance() )
157
158 def testHash( self ) :
159

Callers

nothing calls this directly

Calls 1

defaultInstanceMethod · 0.80

Tested by

no test coverage detected