#NEWLINE# def test_form_update( self ) : #NEWLINE# #INDENT# existing = Post . objects . create ( title = self . data [ 'title' ] , body = self . data [ 'body' ] , body_markup_type = 'markdown' ) #NEWLINE# update = { #NEWLINE# #INDENT# 'title' : 'New title' , #NEWLINE# 'body' : '**different markdown**' , #NEWLINE# 'body_markup_type' : 'markdown' , #NEWLINE# #UNINDENT# } #NEWLINE# form = self . form_class ( form , instance = existing ) #NEWLINE# form . save ( ) #NEWLINE# actual = Post . objects . get ( title = update [ 'title' ] ) #NEWLINE# self . assertEquals ( actual . body . raw , update [ 'body' ] )