def METHOD_NAME(self, test_env):
    t = test_env.from_string(
        '{% set foo = 41 %}{% import "module" as m %}{{ m.test() }}',
        globals={"foo": 42},
    )
    assert t.render() == "[42|23]"