#NEWLINE# def test_invalid_record_validation( self ) : #NEWLINE# #INDENT# resp = self . app . post_json ( ( '/models/%s/records' % self . model_id ) , self . invalid_record , headers = self . headers , status = 400 ) #NEWLINE# self . assertIn ( '"status": "error"' , resp . body . decode ( 'utf-8' ) )