Commit 98ccd20d authored by Ivan Tyagov's avatar Ivan Tyagov

Check for duplicating selection name in listboxes.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39128 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 321ec5b4
...@@ -237,6 +237,15 @@ class TestXHTML(ERP5TypeTestCase): ...@@ -237,6 +237,15 @@ class TestXHTML(ERP5TypeTestCase):
if selection_name in ("",None): if selection_name in ("",None):
error_list.append(form_path) error_list.append(form_path)
self.assertEquals(error_list, []) self.assertEquals(error_list, [])
def test_duplicatingSelectionNameInListbox(self):
"""
Check for duplicating selection name in listboxes.
Usually we should not have duplicates except in some rare cases
described in SkinsTool_getDuplicateSelectionNameDict
"""
duplicating_selection_name_dict = self.portal.portal_skins.SkinsTool_getDuplicateSelectionNameDict()
self.assertEquals(duplicating_selection_name_dict, {})
def test_callableListMethodInListbox(self): def test_callableListMethodInListbox(self):
# check all list_method in listboxes # check all list_method in listboxes
......
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