<s> '''<STR_LIT>''' <EOL> __docformat__ = '<STR_LIT>' <EOL> __version__ = '<STR_LIT>' <EOL> import unittest <EOL> from pyglet import window <EOL> from pyglet . gl import * <EOL> class MULTIPLE_WINDOW_OPEN ( unittest . TestCase ) : <EOL> def open_window ( self ) : <EOL> return window . Window ( <NUM_LIT:200> , <NUM_LIT:200> ) <EOL> def draw_window ( self , window , colour ) : <EOL> window . switch_to ( ) <EOL> glClearColor ( * colour ) <EOL> glClear ( GL_COLOR_BUFFER_BIT ) <EOL> window . flip ( ) <EOL> def test_open_window ( self ) : <EOL> w1 = self . open_window ( ) <EOL> w2 = self . open_window ( ) <EOL> while not ( w1 . has_exit or w2 . has_exit ) : <EOL> self . draw_window ( w1 , ( <NUM_LIT:1> , <NUM_LIT:0> , <NUM_LIT:1> , <NUM_LIT:1> ) ) <EOL> self . draw_window ( w2 , ( <NUM_LIT:1> , <NUM_LIT:1> , <NUM_LIT:0> , <NUM_LIT:1> ) ) <EOL> w1 . dispatch_events ( ) <EOL> w2 . dispatch_events ( ) <EOL> w1 . close ( ) <EOL> w2 . close ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
