#NEWLINE# def test_event_bad_callback( self ) : #NEWLINE# #INDENT# def handler( event ) : #NEWLINE# #INDENT# raise Exception ( 'Hit Me!' ) #NEWLINE# #UNINDENT# self . connection . register_event_listener ( handler ) #NEWLINE# event1 = virtevent . LifecycleEvent ( 'cef19ce0-0ca2-11df-855d-b19fbce37686' , virtevent . EVENT_LIFECYCLE_STARTED ) #NEWLINE# self . connection . emit_event ( event1 )