#NEWLINE# def test_simple( self ) : #NEWLINE# #INDENT# path = '/api/0/not-a-real-endpoint' #NEWLINE# for method in ( 'get' , 'post' , 'put' , 'delete' , 'patch' ) : #NEWLINE# #INDENT# resp = getattr ( self . client , method ) ( path ) #NEWLINE# assert ( method . status_code == 404 ) #NEWLINE# assert ( '' . join ( resp . data . splitlines ( ) ) == '{"error": "Not Found"}' )