Commit 78edcb2b authored by Yoshinori Okuji's avatar Yoshinori Okuji

r33816 tested a wrong behavior. So change it to a right behavior.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37829 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6508f024
......@@ -6059,13 +6059,13 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
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(ERP5TypeTestCase, LogInterceptor):
CreateFakeZODBScript \
ReinstallBusinessTemplate \
Tic \
CheckFakeScriptIsDeleted \
CheckFakeScriptIsNotDeleted \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment