#NEWLINE# def test_update_w_fetch( self ) : #NEWLINE# #INDENT# A = self . classes . A #NEWLINE# s = Session ( ) #NEWLINE# a1 = A ( x = 1 , y = 2 ) #NEWLINE# s . add ( a1 ) #NEWLINE# s . commit ( ) #NEWLINE# eq_ ( a1 . id , 1 ) #NEWLINE# a1 . x = 5 #NEWLINE# s . expire ( a1 , [ 'y' ] ) #NEWLINE# assert ( 'y' not in a1 . __dict__ ) #NEWLINE# s . bulk_save_objects ( [ a1 ] ) #NEWLINE# s . commit ( ) #NEWLINE# eq_ ( a1 . x , 5 ) #NEWLINE# eq_ ( a1 . y , 2 )