#NEWLINE# def test_dont_rewrite_existing_implementation( self , app , accept_json ) : #NEWLINE# #INDENT# class MyResponse ( app . response_class ) : #NEWLINE# #INDENT# @ property #NEWLINE# def json( self ) : #NEWLINE# #INDENT# 'What is the meaning of life, the universe and everything?' #NEWLINE# return 42 #NEWLINE# #UNINDENT# #UNINDENT# app . response_class = MyResponse #NEWLINE# client = app . test_client ( ) #NEWLINE# res = client . get ( url_for ( 'ping' ) , headers = accept_json ) #NEWLINE# assert ( res . json == 42 )