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

Method test

test/IECoreGL/FontLoaderTest.py:45–58  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

43class FontLoaderTest( unittest.TestCase ) :
44
45 def test( self ) :
46
47 fl = IECoreGL.FontLoader( IECore.SearchPath( os.path.join( ".", "test", "IECore", "data", "fonts" ) ) )
48
49 f = fl.load( "Vera.ttf" )
50 self.assertTrue( isinstance( f, IECoreGL.Font ) )
51
52 f2 = fl.load( "Vera.ttf" )
53 self.assertTrue( f.isSame( f2 ) )
54
55 fl.clear()
56
57 f3 = fl.load( "Vera.ttf" )
58 self.assertFalse( f3.isSame( f2 ) )
59
60if __name__ == "__main__":
61 unittest.main()

Callers

nothing calls this directly

Calls 5

loadMethod · 0.95
clearMethod · 0.95
FontLoaderMethod · 0.80
SearchPathMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected