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

Method test

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

Source from the content-addressed store, hash-verified

40class SearchPathTest( unittest.TestCase ) :
41
42 def test( self ) :
43
44 s = IECore.SearchPath()
45 self.assertEqual( s.paths, [] )
46 s.setPaths( os.pathsep.join( [ "a", "b", "c" ] ), os.pathsep )
47 self.assertEqual( s.paths, [ "a", "b", "c" ] )
48 s.paths = [ "one", "two", "three" ]
49 self.assertEqual( s.paths, [ "one", "two", "three" ] )
50
51 s = IECore.SearchPath( os.pathsep.join( [ "a", "b", "c" ] ), os.pathsep )
52 self.assertEqual( s.paths, [ "a", "b", "c" ] )
53 self.assertEqual( s.getPaths( os.pathsep ), os.pathsep.join( [ "a", "b", "c" ] ) )
54
55 def testFind( self ) :
56

Callers

nothing calls this directly

Calls 4

setPathsMethod · 0.95
getPathsMethod · 0.95
SearchPathMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected