#NEWLINE# def test_update_list_item( self ) : #NEWLINE# #INDENT# t1 = Table1 ( ) #NEWLINE# t2 = Table2 ( ) #NEWLINE# t1 . tbl2s . append ( t1 ) #NEWLINE# session . commit ( ) #NEWLINE# t1 . from_dict ( dict ( tbl2s = [ { #NEWLINE# #INDENT# 't2id' : t2 . t2id , #NEWLINE# 'name' : 'test4' , #NEWLINE# #UNINDENT# } ] ) ) #NEWLINE# assert ( len ( t1 . tbl2s ) == 1 ) #NEWLINE# assert ( t1 . tbl2s [ 0 ] . name == 'test4' )