MCPcopy
hub / github.com/django/django / test_normal_extend

Method test_normal_extend

tests/template_tests/test_extends.py:12–16  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10
11class ExtendsBehaviorTests(SimpleTestCase):
12 def test_normal_extend(self):
13 engine = Engine(dirs=[os.path.join(RECURSIVE, "fs")])
14 template = engine.get_template("one.html")
15 output = template.render(Context({}))
16 self.assertEqual(output.strip(), "three two one")
17
18 def test_extend_recursive(self):
19 engine = Engine(

Callers

nothing calls this directly

Calls 5

get_templateMethod · 0.95
EngineClass · 0.90
ContextClass · 0.90
joinMethod · 0.45
renderMethod · 0.45

Tested by

no test coverage detected