#NEWLINE# def do_request( app , expect_status = 500 ) : #NEWLINE# #INDENT# app = lint . middleware ( app ) #NEWLINE# app = CgitbMiddleware ( app , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , display = True ) #NEWLINE# app = clear_middleware ( app ) #NEWLINE# testapp = TestApp ( app ) #NEWLINE# res = testapp . get ( '' , status = expect_status , expect_errors = True ) #NEWLINE# return res