[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Publisher/Browser/tests - testGlobalBrowserMenuService.py:1.5 testGlobalBrowserMenuServiceDirectives.py:1.7
runyaga
runyaga@thisbox.com
Thu, 5 Dec 2002 09:17:14 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Publisher/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv10345/tests
Modified Files:
testGlobalBrowserMenuService.py
testGlobalBrowserMenuServiceDirectives.py
Log Message:
added a 'selected' attribute for each MenuItem
when the BrowserService returns a getMenu()
this calculation is based on the request.
=== Zope3/lib/python/Zope/App/Publisher/Browser/tests/testGlobalBrowserMenuService.py 1.4 => 1.5 ===
--- Zope3/lib/python/Zope/App/Publisher/Browser/tests/testGlobalBrowserMenuService.py:1.4 Mon Nov 11 15:20:27 2002
+++ Zope3/lib/python/Zope/App/Publisher/Browser/tests/testGlobalBrowserMenuService.py Thu Dec 5 09:17:12 2002
@@ -77,8 +77,9 @@
return {'action': "a%s" % n,
'title': "t%s" % n,
'description': "d%s" % n,
+ 'selected': ''
}
-
+
self.assertEqual(list(menu), [d(5), d(6), d(3), d(2), d(1)])
def test_no_dups(self):
@@ -103,7 +104,7 @@
return {'action': "a%s" % n,
'title': "t%s" % n,
'description': "d%s" % n,
- }
+ 'selected': ''}
self.assertEqual(list(menu), [d(5), d(6), d(3), d(2), d(1)])
=== Zope3/lib/python/Zope/App/Publisher/Browser/tests/testGlobalBrowserMenuServiceDirectives.py 1.6 => 1.7 ===
--- Zope3/lib/python/Zope/App/Publisher/Browser/tests/testGlobalBrowserMenuServiceDirectives.py:1.6 Fri Nov 8 14:56:31 2002
+++ Zope3/lib/python/Zope/App/Publisher/Browser/tests/testGlobalBrowserMenuServiceDirectives.py Thu Dec 5 09:17:12 2002
@@ -97,6 +97,7 @@
return {'action': "a%s" % n,
'title': "t%s" % n,
'description': "",
+ 'selected': ''
}
self.assertEqual(list(menu), [d(5), d(6), d(3), d(2), d(1)])