[Zope3-checkins] CVS: Zope3/src/zope/app/services/tests -
test_menu.py:1.4
Jim Fulton
cvs-admin at zope.org
Wed Dec 3 00:41:36 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/services/tests
In directory cvs.zope.org:/tmp/cvs-serv19258/src/zope/app/services/tests
Modified Files:
test_menu.py
Log Message:
Added extra data to browser menu items to accomidate the needs of
add menus.
Changed menu item data to use objects rather than tuples to store the
data,
=== Zope3/src/zope/app/services/tests/test_menu.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/services/tests/test_menu.py:1.3 Sun Sep 21 13:33:13 2003
+++ Zope3/src/zope/app/services/tests/test_menu.py Wed Dec 3 00:41:35 2003
@@ -246,7 +246,7 @@
(self.folder_ms, 'test_id2', ('ar4', 'ar5')),
(self.folder_ms, 'test_id3', ('a7', 'a8', 'af7', 'af8')),
]:
- actions = map(lambda m: m[0],
+ actions = map(lambda m: m.action,
ms.getAllMenuItems(menu_id, TestObject()))
actions.sort()
self.assertEqual(tuple(actions), titles)
@@ -256,7 +256,7 @@
self.assertRaises(KeyError, self.root_ms.getAllMenuItems, 'test_id4',
TestObject())
- actions = map(lambda m: m[0],
+ actions = map(lambda m: m.action,
self.folder_ms.getAllMenuItems('test_id', None))
actions.sort()
self.assertEqual(tuple(actions), ('a0', 'a1', 'a2', 'a3',
More information about the Zope3-Checkins
mailing list