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

Method test_quotes

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

Source from the content-addressed store, hash-verified

51 assert repr(f()) == "'blah\\n'"
52
53 def test_quotes(self):
54 template = 'a="$foo" <p>'
55 f = t(template, globals={"foo": "bar"})
56 assert repr(f()) == "'a=\"bar\" <p>\\n'"
57
58 def test_accessor(self):
59 template = 'a="$foo.id"<p>'

Callers

nothing calls this directly

Calls 2

tFunction · 0.85
fFunction · 0.85

Tested by

no test coverage detected