Commit b5526b16 authored by Nicolas Delaby's avatar Nicolas Delaby

Xpath expression was not correct

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31141 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e7fd4753
...@@ -294,7 +294,7 @@ class TestFormPrintout(ERP5TypeTestCase): ...@@ -294,7 +294,7 @@ class TestFormPrintout(ERP5TypeTestCase):
builder = OOoBuilder(odf_document) builder = OOoBuilder(odf_document)
content_xml = builder.extract("content.xml") content_xml = builder.extract("content.xml")
content = etree.XML(content_xml) content = etree.XML(content_xml)
self.assertTrue(content.xpath('//text:p = "543 210.0"', namespaces=content.nsmap)) self.assertTrue(content.xpath('//text:p[text() = "543 210.0"]', namespaces=content.nsmap))
self._validate(odf_document) self._validate(odf_document)
# change format # change format
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment