

def test_include(self):
    self.env = Environment(loader=DictLoader({
        'include': '{% macro test(foo) %}[{{ foo }}]{% endmacro %}',
    }))
    tmpl = self.env.from_string('{% from "include" import test %}{{ test("foo") }}')
    assert (tmpl.render() == '[foo]')

dataset/ETHPy150Open GeekTrainer/Flask/Work/Trivia - Module 5/env/Lib/site-packages/jinja2/testsuite/core_tags.py MacrosTestCase.test_include/original