#NEWLINE# def test_extra_dirty_state_post_flush_warning( self ) : #NEWLINE# #INDENT# ( s , a1 , a2 ) = self . _test_extra_dirty_state ( ) #NEWLINE# assert_raises_message ( sa . exc . SAWarning , 'Attribute history events accumulated on 1 previously clean instances' , a2 . commit )