(self)
| 56 | assert repr(f()) == "'a=\"bar\" <p>\\n'" |
| 57 | |
| 58 | def test_accessor(self): |
| 59 | template = 'a="$foo.id"<p>' |
| 60 | f = t(template, globals={"foo": TestItem()}) |
| 61 | assert repr(f()) == "'a=\"12345\"<p>\\n'" |
| 62 | |
| 63 | def test_href(self): |
| 64 | template = '<a href="/del/$item.id">Delete</a>' |