[Erp5-report] r37829 yo - /erp5/trunk/products/ERP5/tests/testBusinessTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Aug 16 09:48:23 CEST 2010


Author: yo
Date: Mon Aug 16 09:48:20 2010
New Revision: 37829

URL: http://svn.erp5.org?rev=37829&view=rev
Log:
r33816 tested a wrong behavior. So change it to a right behavior.

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=37829&r1=37828&r2=37829&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testBusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testBusinessTemplate.py [utf8] Mon Aug 16 09:48:20 2010
@@ -6059,13 +6059,13 @@ class TestBusinessTemplate(ERP5TypeTestC
     template_skin_id_list.append('custom')
     bt.edit(template_skin_id_list=template_skin_id_list)
 
-  def stepCheckFakeScriptIsDeleted(self, sequence=None, sequence_list=None, **kw):
+  def stepCheckFakeScriptIsNotDeleted(self, sequence=None, sequence_list=None, **kw):
     """Check that script inside ZODB is deleted by BT reinstallation
     """
     python_script_id = sequence.get('python_script_id')
     skin_folder_id = sequence.get('skin_folder_id')
     folder = self.portal.portal_skins[skin_folder_id]
-    self.assertTrue(python_script_id not in folder.objectIds())
+    self.assertTrue(python_script_id in folder.objectIds())
 
   def test_38_CheckReinstallation(self, quiet=quiet, run=run_all_test):
     if not run: return
@@ -6099,7 +6099,7 @@ class TestBusinessTemplate(ERP5TypeTestC
                        CreateFakeZODBScript \
                        ReinstallBusinessTemplate \
                        Tic \
-                       CheckFakeScriptIsDeleted \
+                       CheckFakeScriptIsNotDeleted \
                        '
     sequence_list.addSequenceString(sequence_string)
     sequence_list.play(self, quiet=quiet)




More information about the Erp5-report mailing list