(self)
| 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>' |