<s> '''<STR_LIT>''' <EOL> __docformat__ = '<STR_LIT>' <EOL> __version__ = '<STR_LIT>' <EOL> import unittest <EOL> from render_base import RenderBase <EOL> import scene2d <EOL> from scene2d . debug import gen_rect_map <EOL> class OOBTest ( RenderBase ) : <EOL> def test_main ( self ) : <EOL> self . init_window ( <NUM_LIT> , <NUM_LIT> ) <EOL> self . set_map ( gen_rect_map ( [ [ { } ] * <NUM_LIT:10> ] * <NUM_LIT:10> , <NUM_LIT:32> , <NUM_LIT:32> ) ) <EOL> def on_text ( text ) : <EOL> if text == '<STR_LIT:o>' : <EOL> self . view . allow_oob = not self . view . allow_oob <EOL> print '<STR_LIT>' , self . view . allow_oob <EOL> return <EOL> return pyglet . window . event . EVENT_UNHANDLED <EOL> print '<STR_LIT>' , self . view . allow_oob <EOL> self . w . push_handlers ( on_text ) <EOL> self . show_focus ( ) <EOL> self . run_test ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
