Commit ba2e30a1 authored by Łukasz Nowak's avatar Łukasz Nowak

- test selection deletion


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29932 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent db03ee14
......@@ -227,7 +227,19 @@ class TestSelectionTool(ERP5TypeTestCase):
self.assertEquals(None,
self.portal_selections.getSelectionIndexFor('test_selection'))
def testDeleteSelection(self):
selection = self.portal_selections.getSelectionFor('test_selection')
self.assert_(isinstance(selection, Selection))
self.portal_selections.manage_deleteSelection('test_selection')
selection = self.portal_selections.getSelectionFor('test_selection')
self.assertEqual(selection, None)
def testDeleteGlobalSelection(self):
selection = self.portal_selections.getSelectionFor('test_selection')
self.assert_(isinstance(selection, Selection))
self.portal_selections.manage_deleteGlobalSelection('test_selection')
selection = self.portal_selections.getSelectionFor('test_selection')
self.assertEqual(selection, None)
class TestSelectionPersistence(unittest.TestCase):
"""SelectionTool tests that needs a "real" FileStorage to make sure selection
......
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