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

Method upper

tornado/test/template_test.py:99–100  ·  tornado/test/template_test.py::TemplateTest.upper
(s)

Source from the content-addressed store, hash-verified

97
98 def test_apply(self):
99 def upper(s):
100 return s.upper()
101
102 template = Template(utf8(class="st">"{% apply upper %}foo{% end %}"))
103 self.assertEqual(template.generate(upper=upper), bclass="st">"FOO")

Callers 6

enable_pretty_loggingFunction · 0.80
get_closestMethod · 0.80
environMethod · 0.80
_oauth_signatureFunction · 0.80
_oauth10a_signatureFunction · 0.80
handle_streamMethod · 0.80

Calls 2

to_unicodeFunction · 0.90
utf8Function · 0.90

Tested by

no test coverage detected