Mercurial > genshi > genshi-test
changeset 413:41f29cbbf1c8
Fix unit tests broken by [504].
author | cmlenz |
---|---|
date | Mon, 26 Feb 2007 20:43:02 +0000 |
parents | 29cddd600245 |
children | 8b1c6f78ba7c |
files | genshi/tests/path.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/genshi/tests/path.py +++ b/genshi/tests/path.py @@ -454,13 +454,13 @@ def test_attrname_with_namespace(self): xml = XML('<root xmlns:f="FOO"><foo f:bar="baz"/></root>') path = Path('foo[@f:bar]') - self.assertEqual('<foo ns1:bar="baz"/>', + self.assertEqual('<foo xmlns:ns1="FOO" ns1:bar="baz"/>', path.select(xml, namespaces={'f': 'FOO'}).render()) def test_attrwildcard_with_namespace(self): xml = XML('<root xmlns:f="FOO"><foo f:bar="baz"/></root>') path = Path('foo[@f:*]') - self.assertEqual('<foo ns1:bar="baz"/>', + self.assertEqual('<foo xmlns:ns1="FOO" ns1:bar="baz"/>', path.select(xml, namespaces={'f': 'FOO'}).render())