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

Method testInvalidChar

test/IECoreScene/FontTest.py:94–99  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

92 self.assertGreater( font.bound( "T\nT" ).size().y, font.bound( "TT" ).size().y )
93
94 def testInvalidChar( self ) :
95
96 font = IECoreScene.Font( os.path.join( "test", "IECore", "data", "fonts", "Vera.ttf" ) )
97
98 self.assertEqual( font.bound( "X" ), font.bound( b"\xff" ) )
99 self.assertEqual( font.mesh( "X" ), font.mesh( b"\xff" ) )
100
101if __name__ == "__main__":
102 unittest.main()

Callers

nothing calls this directly

Calls 4

boundMethod · 0.95
meshMethod · 0.95
joinMethod · 0.80
FontMethod · 0.45

Tested by

no test coverage detected