MCPcopy Create free account
hub / github.com/webpy/webpy / testPrint

Method testPrint

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

Source from the content-addressed store, hash-verified

31 """Tests for the template security feature."""
32
33 def testPrint(self):
34 tpl = "$code:\n print('blah')"
35 self.assertRaises(NameError, t(tpl))
36
37 def testAttr(self):
38 tpl = "$code:\n (lambda x: x+1).func_code"

Callers

nothing calls this directly

Calls 1

tFunction · 0.85

Tested by

no test coverage detected