( self )
| 69 | self.assertTrue( isinstance( l, IECore.ClassLoader ) ) |
| 70 | |
| 71 | def testRefresh( self ) : |
| 72 | |
| 73 | l = IECore.ClassLoader( IECore.SearchPath( os.path.join( "test", "IECore", "ops" ) ) ) |
| 74 | |
| 75 | c = l.classNames() |
| 76 | self.assertEqual( l.getDefaultVersion( os.path.join( "maths", "multiply" ) ), 2 ) |
| 77 | l.setDefaultVersion( os.path.join( "maths", "multiply" ), 1 ) |
| 78 | self.assertEqual( l.getDefaultVersion( os.path.join( "maths", "multiply" ) ), 1 ) |
| 79 | |
| 80 | l.refresh() |
| 81 | self.assertEqual( c, l.classNames() ) |
| 82 | self.assertEqual( l.getDefaultVersion( os.path.join( "maths", "multiply" ) ), 1 ) |
| 83 | |
| 84 | def testDotsInPath( self ) : |
| 85 |
nothing calls this directly
no test coverage detected