#NEWLINE# def test_unknown_record_returns_404( self ) : #NEWLINE# #INDENT# self . app . put_json ( '/models/test' , MODEL_DEFINITION , headers = self . headers ) #NEWLINE# resp = self . app . get ( '/models/test/records/1234' , headers = self . headers , status = 404 ) #NEWLINE# self . assertDictEqual ( resp . json , force_unicode ( { #NEWLINE# #INDENT# 'errors' : [ { #NEWLINE# #INDENT# 'location' : 'path' , #NEWLINE# 'name' : '1234' , #NEWLINE# 'description' : 'record not found' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# 'status' : 'error' , #NEWLINE# #UNINDENT# } ) )