#NEWLINE# def test_deferred_map_event_subclass_post_mapping_propagate_two( self ) : #NEWLINE# #INDENT# '\n        1. map only subclass of class\n        2. mapper event listen on class, w propagate\n        3. event fire should receive event\n\n        ' #NEWLINE# ( users , User ) = ( canary . tables . users , self . classes . User ) #NEWLINE# class SubUser ( User ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# class SubSubUser ( SubUser ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# m = mapper ( SubUser , users ) #NEWLINE# canary = Mock ( ) #NEWLINE# event . listen ( User , 'before_insert' , canary , propagate = True , raw = True ) #NEWLINE# m2 = mapper ( SubSubUser , users ) #NEWLINE# m . dispatch . before_insert ( 5 , 6 , 7 ) #NEWLINE# eq_ ( canary . mock_calls , [ call ( 5 , 6 , 7 ) ] ) #NEWLINE# m2 . dispatch . before_insert ( 8 , 9 , 10 ) #NEWLINE# eq_ ( canary . mock_calls , [ call ( 5 , 6 , 7 ) , call ( 8 , 9 , 10 ) ] )