#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# self . _event_handlers = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for name in dir ( events ) : #NEWLINE# #INDENT# event = getattr ( events , name ) #NEWLINE# if isinstance ( event , events . EventHook ) : #NEWLINE# #INDENT# self . _event_handlers [ name ] = copy ( event . _handlers )