diff --git a/product/ERP5OOo/tests/testFormPrintout.py b/product/ERP5OOo/tests/testFormPrintout.py index 31ef5c425c16d674f7e1410f0327edaf22120dca..32517983b728f10f29a73a14acf45ed851098a83 100644 --- a/product/ERP5OOo/tests/testFormPrintout.py +++ b/product/ERP5OOo/tests/testFormPrintout.py @@ -294,7 +294,7 @@ class TestFormPrintout(ERP5TypeTestCase): builder = OOoBuilder(odf_document) content_xml = builder.extract("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) # change format