Commit e6bbfcaf authored by Ivan Tyagov's avatar Ivan Tyagov

Fix tests

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34204 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3d8901fe
......@@ -157,11 +157,12 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional):
self.assertEqual('visible', box.getValidationState())
# toggle box state
portal.KnowledgeBox_toggleVisibility(box.getRelativeUrl())
box_id = box.getRelativeUrl().replace('/', '_')
portal.KnowledgeBox_toggleVisibility(box_id)
self.assertEqual('invisible', box.getValidationState())
portal.KnowledgeBox_toggleVisibility(box.getRelativeUrl())
portal.KnowledgeBox_toggleVisibility(box_id)
self.assertEqual('visible', box.getValidationState())
portal.KnowledgePad_deleteBox(box.getRelativeUrl())
portal.KnowledgePad_deleteBox(box_id)
self.assertEqual('deleted', box.getValidationState())
# add new pad
......
1315
\ No newline at end of file
1316
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