MCPcopy Index your code
hub / github.com/webpy/webpy / test_overridden

Method test_overridden

tests/test_template.py:48–51  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

46 t("$code:\n bar = {k:0 for k in [1,2,3]}")()
47
48 def test_overridden(self):
49 tpl = "$print('blah')"
50 f = t(tpl, globals={"print": lambda x: x})
51 assert repr(f()) == "'blah\\n'"
52
53 def test_quotes(self):
54 template = 'a="$foo" <p>'

Callers

nothing calls this directly

Calls 2

tFunction · 0.85
fFunction · 0.85

Tested by

no test coverage detected