<s> '''<STR_LIT>''' <EOL> __docformat__ = '<STR_LIT>' <EOL> __version__ = '<STR_LIT>' <EOL> import unittest <EOL> from pyglet import gl <EOL> from pyglet import font <EOL> import base_text <EOL> class TEST_VALIGN ( base_text . TextTestBase ) : <EOL> font_name = '<STR_LIT>' <EOL> window_size = <NUM_LIT> , <NUM_LIT:200> <EOL> def render ( self ) : <EOL> fnt = font . load ( '<STR_LIT>' , self . font_size ) <EOL> h = fnt . ascent - fnt . descent <EOL> w = self . window . width <EOL> self . labels = [ ] <EOL> x = <NUM_LIT:0> <EOL> for align in '<STR_LIT>' . split ( ) : <EOL> label = align . upper ( ) + '<STR_LIT:y>' <EOL> self . labels . append ( font . Text ( fnt , label , x , <NUM_LIT:50> , valign = align ) ) <EOL> x += self . labels [ - <NUM_LIT:1> ] . width <EOL> def draw ( self ) : <EOL> gl . glColor3f ( <NUM_LIT:1> , <NUM_LIT:1> , <NUM_LIT:1> ) <EOL> gl . glBegin ( gl . GL_LINES ) <EOL> gl . glVertex2f ( <NUM_LIT:0> , <NUM_LIT:50> ) <EOL> gl . glVertex2f ( self . window . width , <NUM_LIT:50> ) <EOL> gl . glEnd ( ) <EOL> for label in self . labels : <EOL> label . draw ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
