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