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

Method testFile

test/IECore/ConfigLoaderTest.py:204–216  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

202 self.assertEqual( config["a"], 2 )
203
204 def testFile( self ) :
205
206 config = {}
207 path = os.path.join( os.path.dirname( __file__ ), "config", "getFile" )
208 IECore.loadConfig(
209
210 IECore.SearchPath( path ),
211 contextDict = { "config" : config },
212
213 )
214
215 expectedFile = os.path.abspath( os.path.join( path, "config.py" ) )
216 self.assertEqual( config["myFile"], expectedFile )
217
218 def testDuplicatePathsIgnored( self ) :
219

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
SearchPathMethod · 0.80

Tested by

no test coverage detected