#NEWLINE# def test_custom_field_name( self ) : #NEWLINE# #INDENT# self . app . config [ 'JSON_STATUS_FIELD_NAME' ] = 'http_status' #NEWLINE# r = json_response ( ) #NEWLINE# assert_equals ( r . status_code , 200 ) #NEWLINE# assert_equals ( r . mimetype , 'application/json' ) #NEWLINE# assert_dict_equal ( r . json , { #NEWLINE# #INDENT# 'http_status' : 200 , #NEWLINE# #UNINDENT# } ) #NEWLINE# r = json_response ( http_status = 'my value' ) #NEWLINE# assert_equals ( r . status_code , 200 ) #NEWLINE# assert_dict_equal ( r . json , { #NEWLINE# #INDENT# 'http_status' : 'my value' , #NEWLINE# #UNINDENT# } ) #NEWLINE# r = json_response ( 400 , http_status = 'my value' ) #NEWLINE# assert_equals ( r . status_code , 400 ) #NEWLINE# assert_dict_equal ( r . json , { #NEWLINE# #INDENT# 'http_status' : 'my value' , #NEWLINE# #UNINDENT# } )