[CMF-checkins] CVS: CMF/CMFCore/tests - test_ActionsTool.py:1.5.10.1
Tres Seaver
tseaver@zope.com
Fri, 30 Aug 2002 10:44:27 -0400
Update of /cvs-repository/CMF/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv17577/CMFCore/tests
Modified Files:
Tag: CMF-1_3-branch
test_ActionsTool.py
Log Message:
- Fixed bugs around 'addActionProvider' in ActionsTool (Collector #42).
=== CMF/CMFCore/tests/test_ActionsTool.py 1.5 => 1.5.10.1 ===
--- CMF/CMFCore/tests/test_ActionsTool.py:1.5 Sat Mar 9 12:23:43 2002
+++ CMF/CMFCore/tests/test_ActionsTool.py Fri Aug 30 10:44:27 2002
@@ -22,6 +22,7 @@
root = self.root
root._setObject( 'portal_actions', ActionsTool() )
root._setObject('foo', URLTool() )
+ root._setObject('bar', URLTool() )
root._setObject('portal_membership', MembershipTool())
root._setObject('portal_types', TypesTool())
self.tool = root.portal_actions
@@ -37,6 +38,10 @@
tool.addActionProvider('foo')
self.assertEqual(tool.listActionProviders(),
('portal_actions', 'foo'))
+ tool.addActionProvider('bar')
+ tool.addActionProvider('foo')
+ self.assertEqual(tool.listActionProviders(),
+ ('portal_actions', 'foo', 'bar'))
def test_delActionProvider(self):
tool = self.tool