Mercurial > genshi > mirror
diff markup/tests/template.py @ 145:47bbd9d2a5af trunk
* Fix error in expression evaluation when the expression evaluates to an iterable that does not produce event tuples.
* The first location step in path expressions longer assumes the `descendant::` axis, but rather the `child::` axis.
* Import cleanups.
author | cmlenz |
---|---|
date | Tue, 15 Aug 2006 09:52:47 +0000 |
parents | d681d2c3cd8d |
children | 537f819c547b |
line wrap: on
line diff
--- a/markup/tests/template.py +++ b/markup/tests/template.py @@ -496,6 +496,11 @@ tmpl = Template('<root attr="${1}"/>') self.assertEqual('<root attr="1"/>', str(tmpl.generate())) + def test_interpolate_list_result(self): + tmpl = Template('<root>$foo</root>') + ctxt = Context(foo=('buzz',)) + self.assertEqual('<root>buzz</root>', str(tmpl.generate(ctxt))) + def test_empty_attr(self): tmpl = Template('<root attr=""/>') self.assertEqual('<root attr=""/>', str(tmpl.generate()))