Commit 72d61c5d authored by Kristian Rother's avatar Kristian Rother

Added a test to make sure Manage Members is not in the My Favourites menu.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11192 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a4264054
...@@ -138,6 +138,23 @@ class TestERP5Core(ERP5TypeTestCase): ...@@ -138,6 +138,23 @@ class TestERP5Core(ERP5TypeTestCase):
self.assertNotEqual(getattr(self.portal.portal_types, object_portal_type, None), None) self.assertNotEqual(getattr(self.portal.portal_types, object_portal_type, None), None)
#self.assertEqual(self.portal.portal_types[object_portal_type].title, object_title) #self.assertEqual(self.portal.portal_types[object_portal_type].title, object_title)
def test_01_Bug_446(self, quiet=quiet, run=run_all_test):
"""
Test that Manage members is not an entry in the My Favourites menu.
"""
if not run: return
portal_action = getattr(self.getPortal(), 'portal_actions', None)
global_action_list = portal_action.listFilteredActionsFor()['global']
action_name_list = []
for action in global_action_list:
action_name_list.append(action['title'])
self.assertTrue('Create Module' in action_name_list)
for action_name in action_name_list:
self.assertNotEqual(action_name, "Manage Members")
self.assertNotEqual(action_name, "Manage members")
if __name__ == '__main__': if __name__ == '__main__':
framework() framework()
else: else:
......
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