[Erp5-report] r31778 jerome - /erp5/trunk/products/ERP5Type/tests/testXMLMatrix.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Jan 15 16:10:56 CET 2010
Author: jerome
Date: Fri Jan 15 16:10:54 2010
New Revision: 31778
URL: http://svn.erp5.org?rev=31778&view=rev
Log:
remove quiet parameter, we now use -v argument to runUnitTest, also update a
rong comment
Modified:
erp5/trunk/products/ERP5Type/tests/testXMLMatrix.py
Modified: erp5/trunk/products/ERP5Type/tests/testXMLMatrix.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/testXMLMatrix.py?rev=31778&r1=31777&r2=31778&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/testXMLMatrix.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/testXMLMatrix.py [utf8] Fri Jan 15 16:10:54 2010
@@ -46,8 +46,6 @@
"""
Tests the Cell API
"""
- quiet = 1
-
def getBusinessTemplateList(self):
"""
Return the list of business templates.
@@ -60,7 +58,7 @@
"""
return "XMLMatrix"
- def afterSetUp(self, quiet=1, run=1):
+ def afterSetUp(self):
"""
Some pre-configuration
"""
@@ -86,12 +84,10 @@
return ERP5TypeTestCase.beforeTearDown(self)
- def test_01_RenameCellRange(self, quiet=quiet):
+ def test_01_RenameCellRange(self):
"""
tests renameCellRange behaviour
"""
- if not quiet:
- ZopeTestCase._print('\nTest Rename Cell Range ')
matrix = self.matrix
cell_range = [['1', '2', '3'], ['a', 'b', 'c']]
@@ -329,25 +325,19 @@
self.assertFalse(catalog.hasPath(cell2_path))
- def test_02_SetCellRangeAndCatalogWithActivities(self, quiet=quiet):
+ def test_02_SetCellRangeAndCatalogWithActivities(self):
"""
Tests if set Cell range do well catalog and uncatalog, using activities
"""
- if not quiet:
- ZopeTestCase._print('\nTest Set Cell Range And Catalog With Activities ')
self.checkSetCellRangeAndCatalog(active=1)
-
-
- def test_9999_SetCellRangeAndCatalogWithoutActivities(self, quiet=quiet):
+
+ def test_9999_SetCellRangeAndCatalogWithoutActivities(self):
"""
Tests if set Cell range do well catalog and uncatalog, not using
activities.
- WARNING this test removes activity tool from the test environment. All
- tests after this one will have no activity tool.
- """
- if not quiet:
- ZopeTestCase._print('\nTest Set Cell Range And Catalog Without Activities ')
+ This test removes activity tool, and restores it in teardown.
+ """
self.checkSetCellRangeAndCatalog(active=0)
More information about the Erp5-report
mailing list