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

Method test_simple

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

Source from the content-addressed store, hash-verified

11
12class TemplateTest(unittest.TestCase):
13 def test_simple(self):
14 template = Template("Hello {{ name }}!")
15 self.assertEqual(template.generate(name="Ben"), b"Hello Ben!")
16
17 def test_bytes(self):
18 template = Template("Hello {{ name }}!")

Callers

nothing calls this directly

Calls 2

generateMethod · 0.95
TemplateClass · 0.90

Tested by

no test coverage detected