#NEWLINE# def test_overridden_parsers_with_decorator( self ) : #NEWLINE# #INDENT# with self . app . test_client ( ) as client : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# 'example' : 'example' , #NEWLINE# #UNINDENT# } #NEWLINE# response = client . get ( '/custom_renderer_2/' , data = data ) #NEWLINE# self . assertEqual ( response . status_code , status . HTTP_200_OK ) #NEWLINE# self . assertEqual ( response . headers [ 'Content-Type' ] , 'application/example2' ) #NEWLINE# data = response . get_data ( ) . decode ( 'utf8' ) #NEWLINE# self . assertEqual ( data , 'custom renderer 2' )