( self )
| 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 |
nothing calls this directly
no test coverage detected