[Erp5-report] r31141 nicolas - /erp5/trunk/products/ERP5OOo/tests/testFormPrintout.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Dec 8 11:03:35 CET 2009


Author: nicolas
Date: Tue Dec  8 11:03:34 2009
New Revision: 31141

URL: http://svn.erp5.org?rev=31141&view=rev
Log:
Xpath expression was not correct

Modified:
    erp5/trunk/products/ERP5OOo/tests/testFormPrintout.py

Modified: erp5/trunk/products/ERP5OOo/tests/testFormPrintout.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testFormPrintout.py?rev=31141&r1=31140&r2=31141&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testFormPrintout.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testFormPrintout.py [utf8] Tue Dec  8 11:03:34 2009
@@ -294,7 +294,7 @@
     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




More information about the Erp5-report mailing list