#NEWLINE# def test_make_json_error_response( self ) : #NEWLINE# #INDENT# response = self . provider . _make_json_error_response ( 'some_error' ) #NEWLINE# self . assertEquals ( 400 , response . status_code ) #NEWLINE# try : #NEWLINE# #INDENT# response_json = response . json ( ) #NEWLINE# #UNINDENT# except TypeError : #NEWLINE# #INDENT# response_json = response . json #NEWLINE# #UNINDENT# self . assertEquals ( { #NEWLINE# #INDENT# 'error' : 'some_error' , #NEWLINE# #UNINDENT# } , response_json )