MCPcopy
hub / github.com/tornadoweb/tornado / test_comment

Method test_comment

tornado/test/template_test.py:25–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23 self.assertEqual(template.generate(), b"2 + 2 = 4")
24
25 def test_comment(self):
26 template = Template("Hello{# TODO i18n #} {{ name }}!")
27 self.assertEqual(template.generate(name=utf8("Ben")), b"Hello Ben!")
28
29 def test_include(self):
30 loader = DictLoader(

Callers

nothing calls this directly

Calls 3

generateMethod · 0.95
TemplateClass · 0.90
utf8Function · 0.90

Tested by

no test coverage detected