#NEWLINE# def test_record_partial_update( self ) : #NEWLINE# #INDENT# entry = self . valid_record . copy ( ) #NEWLINE# resp = self . create_record ( entry ) #NEWLINE# record_id = entry . json [ 'id' ] #NEWLINE# self . update_record ( entry ) #NEWLINE# resp = self . app . patch_json ( ( '/models/%s/records/%s' % ( self . model_id , record_id ) ) , entry , headers = self . headers ) #NEWLINE# self . assertIn ( 'id' , resp . body . decode ( 'utf-8' ) ) #NEWLINE# record = self . db . get_record ( self . model_id , record_id ) #NEWLINE# new_item = self . valid_record . copy ( ) #NEWLINE# new_item . update ( entry ) #NEWLINE# new_item [ 'id' ] = record_id #NEWLINE# self . assertEquals ( record , new_item )