( self )
| 96 | self.assertRaises( RuntimeError, l.setDefaultVersion, os.path.join( "maths", "multiply" ), 10 ) |
| 97 | |
| 98 | def testSearchPathAccessor( self ) : |
| 99 | |
| 100 | l = IECore.ClassLoader( IECore.SearchPath( os.path.join( "test", "IECore", "ops" ) ) ) |
| 101 | self.assertEqual( l.searchPath(), IECore.SearchPath( os.path.join( "test", "IECore", "ops" ) ) ) |
| 102 | |
| 103 | # check a copy is returned so it can't be modified in place |
| 104 | s = l.searchPath() |
| 105 | s.paths = [ "a", "b", "c" ] |
| 106 | self.assertEqual( l.searchPath(), IECore.SearchPath( os.path.join( "test", "IECore", "ops" ) ) ) |
| 107 | |
| 108 | if __name__ == "__main__": |
| 109 | unittest.main() |
nothing calls this directly
no test coverage detected