MCPcopy Create free account
hub / github.com/EasyIME/PIME / test_include

Method test_include

python/python3/tornado/test/template_test.py:29–38  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27 self.assertEqual(template.generate(name=utf8("Ben")), b"Hello Ben!")
28
29 def test_include(self):
30 loader = DictLoader(
31 {
32 "index.html": '{% include "header.html" %}\nbody text',
33 "header.html": "header text",
34 }
35 )
36 self.assertEqual(
37 loader.load("index.html").generate(), b"header text\nbody text"
38 )
39
40 def test_extends(self):
41 loader = DictLoader(

Callers

nothing calls this directly

Calls 3

DictLoaderClass · 0.90
generateMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected