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

Method test_utf8_in_file

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

Source from the content-addressed store, hash-verified

523 self.loader = Loader(os.path.join(os.path.dirname(__file__), "templates"))
524
525 def test_utf8_in_file(self):
526 tmpl = self.loader.load("utf8.html")
527 result = tmpl.generate()
528 self.assertEqual(to_unicode(result).strip(), "H\u00e9llo")

Callers

nothing calls this directly

Calls 3

to_unicodeFunction · 0.90
loadMethod · 0.80
generateMethod · 0.45

Tested by

no test coverage detected