Mercurial > genshi > mirror
changeset 833:b3f1486af964 trunk
Added XPath unit test for #234.
author | cmlenz |
---|---|
date | Tue, 17 Mar 2009 14:31:49 +0000 |
parents | 395b701f10d3 |
children | c965ea40311e |
files | genshi/tests/path.py |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/genshi/tests/path.py +++ b/genshi/tests/path.py @@ -204,6 +204,15 @@ input = xml, output = '<bar id="2"/>' ) + xml = XML('''<table> + <tr><td>1</td><td>One</td></tr> + <tr><td>2</td><td>Two</td></tr> + </table>''') + self._test_eval( + path = 'tr/td[1]', + input = xml, + output = '<td>1</td><td>2</td>' + ) def test_2step_text(self): xml = XML('<root><item>Foo</item></root>')