#NEWLINE# def test_override( self ) : #NEWLINE# #INDENT# e1 = ModelFormTestModel ( s_name = 's_name' , zip_code = '1111111' , addr = 'addr' ) #NEWLINE# e1 . put ( ) #NEWLINE# f = ModelFormTestForm ( instance = e2 ) #NEWLINE# f . validate ( { #NEWLINE# #INDENT# 's_name' : 'hoge' , #NEWLINE# #UNINDENT# } ) #NEWLINE# f . save ( ) #NEWLINE# e2 = ModelFormTestModel . all ( ) . get ( ) #NEWLINE# self . assertEqual ( e2 . s_name , 'hoge' ) #NEWLINE# self . assertEqual ( e2 . zip_code , '1111111' ) #NEWLINE# self . assertEqual ( e2 . addr , 'addr' )