#NEWLINE# def test_add_template_test_with_template( ) : #NEWLINE# #INDENT# app = flask . Flask ( __name__ ) #NEWLINE# def boolean( value ) : #NEWLINE# #INDENT# return isinstance ( value , bool ) #NEWLINE# #UNINDENT# app . add_template_test ( boolean ) #NEWLINE# @ app . route ( '/' ) #NEWLINE# def index( ) : #NEWLINE# #INDENT# return flask . render_template ( 'template_test.html' , value = False ) #NEWLINE# #UNINDENT# rv = app . test_client ( ) . get ( '/' ) #NEWLINE# assert ( b'Success!' in rv . data )