#NEWLINE# def test_instrument_event( self ) : #NEWLINE# #INDENT# ( Address , addresses , users , User ) = ( self . classes . Address , self . tables . addresses , self . tables . users , self . classes . User ) #NEWLINE# canary = [ ] #NEWLINE# def instrument_class( mapper , cls ) : #NEWLINE# #INDENT# canary . append ( cls ) #NEWLINE# #UNINDENT# event . listen ( Mapper , 'instrument_class' , instrument_class ) #NEWLINE# mapper ( users , users ) #NEWLINE# eq_ ( canary , [ User ] ) #NEWLINE# mapper ( Address , addresses ) #NEWLINE# eq_ ( canary , [ User , Address ] )