[Erp5-report] r41730 jm -	/erp5/trunk/products/ERP5OOo/tests/testDms.py
    nobody at svn.erp5.org 
    nobody at svn.erp5.org
       
    Thu Dec 23 19:26:21 CET 2010
    
    
  
Author: jm
Date: Thu Dec 23 19:26:21 2010
New Revision: 41730
URL: http://svn.erp5.org?rev=41730&view=rev
Log:
Postpone @expectedFailure in test_safeHTML_impossible_conversion
This shows that it is currently impossible to edit a Web Page with invalid HTML.
Modified:
    erp5/trunk/products/ERP5OOo/tests/testDms.py
Modified: erp5/trunk/products/ERP5OOo/tests/testDms.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testDms.py?rev=41730&r1=41729&r2=41730&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] Thu Dec 23 19:26:21 2010
@@ -1637,7 +1637,6 @@ document.write('<sc'+'ript type="text/ja
     self.assertTrue('AZERTYY' not in safe_html)
     self.assertTrue('#FFAA44' in safe_html)
 
-  @expectedFailure
   def test_safeHTML_impossible_conversion(self):
     """Some html are not parsable.
     """
@@ -1653,11 +1652,12 @@ document.write('<sc'+'ript type="text/ja
     </html>
 """
     web_page.edit(text_content=html_content)
-    from HTMLParser import ParserError
+    from HTMLParser import HTMLParseError
     try:
       web_page.asStrippedHTML()
-    except ParserError:
-      self.fail('Even BeautifulSoup is not able to parse such HTML')
+    except HTMLParseError:
+      expectedFailure(self.fail)(
+        'Even BeautifulSoup is not able to parse such HTML')
 
   def test_parallel_conversion(self):
     """Check that conversion engine is able to fill in
    
    
More information about the Erp5-report
mailing list