(self)
| 61 | assert repr(f()) == "'a=\"12345\"<p>\\n'" |
| 62 | |
| 63 | def test_href(self): |
| 64 | template = '<a href="/del/$item.id">Delete</a>' |
| 65 | f = t(template, globals={"item": TestItem()}) |
| 66 | assert repr(f()) == "'<a href=\"/del/12345\">Delete</a>\\n'" |
| 67 | |
| 68 | def testImportMustFail(self): |
| 69 | tpl = "${__import__('os').getpwd()}" |