#NEWLINE# def test_flush_noautocommit_hook( self ) : #NEWLINE# #INDENT# ( User , users ) = ( self . classes . User , self . tables . users ) #NEWLINE# ( sess , canary ) = self . _listener_fixture ( ) #NEWLINE# mapper ( User , users ) #NEWLINE# u = User ( name = 'u1' ) #NEWLINE# sess . add ( u ) #NEWLINE# sess . flush ( ) #NEWLINE# eq_ ( canary , [ 'before_attach' , 'after_attach' , 'before_flush' , 'after_transaction_create' , 'after_begin' , 'after_flush' , 'after_flush_postexec' , 'after_transaction_end' ] )