[Erp5-report] r37838 tatuya - /erp5/trunk/products/ERP5/tests/testBusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Aug 16 13:06:10 CEST 2010
Author: tatuya
Date: Mon Aug 16 13:06:10 2010
New Revision: 37838
URL: http://svn.erp5.org?rev=37838&view=rev
Log:
r33816 test was right. So, revert r37829.
When we reinstall the business template, the business template is cloned and built.
Then, compare to the installed bt and the cloned one.
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=37838&r1=37837&r2=37838&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testBusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testBusinessTemplate.py [utf8] Mon Aug 16 13:06:10 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 stepCheckFakeScriptIsNotDeleted(self, sequence=None, sequence_list=None, **kw):
+ def stepCheckFakeScriptIsDeleted(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 in folder.objectIds())
+ self.assertTrue(python_script_id not 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 \
- CheckFakeScriptIsNotDeleted \
+ CheckFakeScriptIsDeleted \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet)
More information about the Erp5-report
mailing list