#NEWLINE# def test_no_escaping( ) : #NEWLINE# #INDENT# text = '<p>Hello World!' #NEWLINE# app = flask . Flask ( __name__ ) #NEWLINE# @ app . route ( '/' ) #NEWLINE# def index( ) : #NEWLINE# #INDENT# return flask . render_template ( 'non_escaping_template.txt' , text = text , html = flask . Markup ( text ) ) #NEWLINE# #UNINDENT# lines = app . test_client ( ) . get ( '/' ) . data . splitlines ( ) #NEWLINE# assert ( lines == [ b'<p>Hello World!' , b'<p>Hello World!' , b'<p>Hello World!' , b'<p>Hello World!' , b'&lt;p&gt;Hello World!' , b'<p>Hello World!' , b'<p>Hello World!' , b'<p>Hello World!' ] )