From 72d61c5dc52c20b0825cff809db8f64c45fe594b Mon Sep 17 00:00:00 2001 From: Kristian Rother <kr@nexedi.com> Date: Wed, 8 Nov 2006 09:56:12 +0000 Subject: [PATCH] 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 --- product/ERP5/tests/testERP5Core.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/product/ERP5/tests/testERP5Core.py b/product/ERP5/tests/testERP5Core.py index 6385611d7f..392fb66270 100644 --- a/product/ERP5/tests/testERP5Core.py +++ b/product/ERP5/tests/testERP5Core.py @@ -137,6 +137,23 @@ class TestERP5Core(ERP5TypeTestCase): #self.assertEqual(self.portal.portal_types[module_portal_type].title, module_title) self.assertNotEqual(getattr(self.portal.portal_types, object_portal_type, None), None) #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__': framework() -- 2.30.9