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

Method test_if_empty_body

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

Source from the content-addressed store, hash-verified

122 self.assertEqual(template.generate(x=3), b"no")
123
124 def test_if_empty_body(self):
125 template = Template(utf8("{% if True %}{% else %}{% end %}"))
126 self.assertEqual(template.generate(), b"")
127
128 def test_try(self):
129 template = Template(

Callers

nothing calls this directly

Calls 3

generateMethod · 0.95
TemplateClass · 0.90
utf8Function · 0.90

Tested by

no test coverage detected