[Erp5-report] r33662 leonardo - /erp5/trunk/products/ERP5/tests/testBusinessTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Mar 11 17:14:06 CET 2010


Author: leonardo
Date: Thu Mar 11 17:14:00 2010
New Revision: 33662

URL: http://svn.erp5.org?rev=33662&view=rev
Log:
split newer failing part to avoid appearance of regression

Modified:
    erp5/trunk/products/ERP5/tests/testBusinessTemplate.py

Modified: erp5/trunk/products/ERP5/tests/testBusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testBusinessTemplate.py?rev=33662&r1=33661&r2=33662&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testBusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testBusinessTemplate.py [utf8] Thu Mar 11 17:14:00 2010
@@ -6022,7 +6022,7 @@
       SimpleItem._getCopy = lambda *args: self.fail()
       template_tool = portal.portal_templates
       bt_path = os.path.join(os.path.dirname(__file__), 'test_data',
-                             self._testMethodName)
+                             'test_167_InstanceAndRelatedClassDefinedInSameBT')
       # create a previously existing instance of the overriden document type
       from Products.ERP5Type.Document.File import File
       portal._setObject('another_file', File('another_file'))
@@ -6048,6 +6048,14 @@
       SimpleItem._getCopy = SimpleItem_getCopy
     # check the previously existing instance now behaves as the overriden class
     self.assertTrue(getattr(portal.another_file, 'isClassOverriden', False))
+
+  def test_168_DocumentUninstallIsEffective(self):
+    portal = self.portal
+    # Test_167 above needs to have been run
+    if not getattr(getattr(portal, 'some_file', None),
+                   'isClassOverriden',
+                   False):
+      self.test_167_InstanceAndRelatedClassDefinedInSameBT()
     self.uninstallBusinessTemplate('test_data')
     transaction.commit()
     self.tic()




More information about the Erp5-report mailing list