<s> import unittest <EOL> from pyglet import window <EOL> import base_event_sequence <EOL> __noninteractive = True <EOL> class TEST_CLASS ( base_event_sequence . BaseEventSequence ) : <EOL> last_sequence = <NUM_LIT:2> <EOL> def on_resize ( self , width , height ) : <EOL> self . check_sequence ( <NUM_LIT:1> , '<STR_LIT>' ) <EOL> def on_expose ( self ) : <EOL> self . check_sequence ( <NUM_LIT:2> , '<STR_LIT>' ) <EOL> def test_method ( self ) : <EOL> win = window . Window ( ) <EOL> win . dispatch_events ( ) <EOL> win . push_handlers ( self ) <EOL> win . set_fullscreen ( ) <EOL> self . check_sequence ( <NUM_LIT:0> , '<STR_LIT>' ) <EOL> while not win . has_exit and not self . finished : <EOL> win . dispatch_events ( ) <EOL> self . check_timeout ( ) <EOL> win . close ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
