[Erp5-report] r35428 nicolas - /erp5/trunk/products/ERP5OOo/tests/testOOoDynamicStyle.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue May 18 15:03:46 CEST 2010


Author: nicolas
Date: Tue May 18 15:03:45 2010
New Revision: 35428

URL: http://svn.erp5.org?rev=35428&view=rev
Log:
cleanup extra spaces

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

Modified: erp5/trunk/products/ERP5OOo/tests/testOOoDynamicStyle.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testOOoDynamicStyle.py?rev=35428&r1=35427&r2=35428&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testOOoDynamicStyle.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testOOoDynamicStyle.py [utf8] Tue May 18 15:03:45 2010
@@ -123,7 +123,7 @@
     # 'Style sheet ja' text is in the odt document header, 
     # and the header is in the 'styles.xml'.
     self.assertTrue(styles_xml_body.find('Style sheet ja') > 0)
-  
+
     # 2. test a normal case, change the language to 'en', 
     #    so that the stylesheet changes dynamically.
     self.getPortal().Localizer = DummyLocalizer()
@@ -133,7 +133,7 @@
     ooo_builder = OOoBuilder(response.getBody())
     styles_xml_body = ooo_builder.extract('styles.xml')
     self.assertTrue(styles_xml_body.find('Style sheet en') > 0)
-    
+
     # 3. test a fail case, reset a not existed stylesheet
     Dynamic_viewAsOdt.doSettings(request, title='', xml_file_id='content.xml',
                                  ooo_stylesheet='NotFound_getODTStyleSheet', 
@@ -174,7 +174,7 @@
     styles_xml_body = ooo_builder.extract('styles.xml')
     self.assertTrue(len(styles_xml_body) > 0)
     self.assertTrue(styles_xml_body.find('Style sheet ja') > 0)
-    
+
     # 2. test a normal case, change the style sheet
     self.assertTrue(self.getPortal().hasObject('Test_getODTStyleSheet_en'))
     Static_viewAsOdt.doSettings(request, title='', xml_file_id='content.xml',
@@ -186,7 +186,7 @@
     styles_xml_body = ooo_builder.extract('styles.xml')
     self.assertTrue(len(styles_xml_body) > 0)
     self.assertTrue(styles_xml_body.find('Style sheet en') > 0)
- 
+
     # 3. test a fail case
     self.assertFalse(self.getPortal().hasObject('NotFound_getODTStyleSheet'))
     Static_viewAsOdt.doSettings(request, title='', xml_file_id='content.xml',
@@ -194,7 +194,7 @@
     response = self.publish('/' + self.getPortal().Static_viewAsOdt.absolute_url(1))
     self.assertFalse(response.getBody().startswith('PK'))
     self.assertTrue(500, response.getStatus())
-     
+
 
 def test_suite():
   suite = unittest.TestSuite()




More information about the Erp5-report mailing list