#NEWLINE# def test_transient_to_pending( self ) : #NEWLINE# #INDENT# User = self . classes . User #NEWLINE# u1 = User ( ) #NEWLINE# u1 . name = 'ed' #NEWLINE# self . _assert_modified ( u1 ) #NEWLINE# self . _assert_no_cycle ( u1 ) #NEWLINE# sess = Session ( ) #NEWLINE# sess . add ( u1 ) #NEWLINE# self . _assert_cycle ( u1 ) #NEWLINE# sess . flush ( ) #NEWLINE# self . _assert_no_cycle ( u1 ) #NEWLINE# self . _assert_not_modified ( u1 )