#NEWLINE# def test_delete_model_records( self ) : #NEWLINE# #INDENT# self . app . put_json ( '/models/test' , MODEL_DEFINITION , headers = self . headers ) #NEWLINE# self . app . post_json ( '/models/test/records' , MODEL_RECORD , headers = self . headers ) #NEWLINE# resp = self . app . delete ( '/models/test/records' , headers = self . headers ) #NEWLINE# self . assertIn ( 'records' , resp . json ) #NEWLINE# self . assertTrue ( len ( resp . json [ 'records' ] ) , 1 ) #NEWLINE# self . assertIn ( 'id' , resp . json [ 'records' ] [ 0 ] ) #NEWLINE# self . assertEqual ( resp . json [ 'records' ] [ 0 ] [ 'age' ] , 42 )