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

Method testThrowExceptions

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

Source from the content-addressed store, hash-verified

94 self.assertEqual( config["a"], 1 )
95
96 def testThrowExceptions( self ) :
97
98 config = {}
99 self.assertRaises(
100
101 RuntimeError,
102 IECore.loadConfig,
103 IECore.SearchPath( [
104 os.path.join( os.path.dirname( __file__ ), "config", "orderOne" ),
105 os.path.join( os.path.dirname( __file__ ), "config", "exceptions" ),
106 ] ),
107 contextDict = { "config" : config },
108 raiseExceptions = True
109
110 )
111
112 self.assertFalse( "a" in config )
113
114 def testScope( self ) :
115

Callers

nothing calls this directly

Calls 2

SearchPathMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected