#NEWLINE# def test_request_bad_accept( self ) : #NEWLINE# #INDENT# 'Make sure we gracefully handle requests where an invalid Accept header is sent.' #NEWLINE# resp = self . app . get ( ( '/user/%s/' % self . user_1_obj [ 'id' ] ) , headers = { #NEWLINE# #INDENT# 'Accept' : 'whatever' , #NEWLINE# #UNINDENT# } ) #NEWLINE# response_error ( resp ) #NEWLINE# self . assertEqual ( resp . data , 'Invalid Accept header requested' )