def setup_test_environment():
 Template.original_render = Template.render
 Template.render = instrumented_test_render

def setup_test_environment ( ) : Template . original_render = Template . render Template . render = instrumented_test_render
perform global pre-test setup .