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

Method testHasChild

test/IECoreVDB/SceneInterfaceTest.py:206–211  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

204 c = self.sceneInterface.child("noChildHere", IECoreScene.SceneInterface.MissingBehaviour.CreateIfMissing )
205
206 def testHasChild( self ) :
207 self.assertTrue( self.sceneInterface.hasChild("vdb") )
208 self.assertFalse( self.sceneInterface.hasChild("noChild") )
209
210 vdb = self.sceneInterface.child( "vdb" )
211 self.assertFalse( vdb.hasChild("noChild") )
212
213
214if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

hasChildMethod · 0.45
childMethod · 0.45

Tested by

no test coverage detected