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

Method testFind

test/IECore/SearchPath.py:55–59  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

53 self.assertEqual( s.getPaths( os.pathsep ), os.pathsep.join( [ "a", "b", "c" ] ) )
54
55 def testFind( self ) :
56
57 s = IECore.SearchPath( os.path.join( "test", "IECore", "data", "pdcFiles" ), os.pathsep )
58
59 self.assertEqual( s.find( "particleShape1.250.pdc" ), os.path.join( "test", "IECore", "data", "pdcFiles", "particleShape1.250.pdc" ) )
60
61 def testCopyConstructor( self ) :
62

Callers

nothing calls this directly

Calls 3

findMethod · 0.95
SearchPathMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected