[CMF-checkins] CVS: CMF/CMFCore/tests - test_ActionsTool.py:1.6
Tres Seaver
tseaver@zope.com
Fri, 30 Aug 2002 11:19:13 -0400
Update of /cvs-repository/CMF/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv25772/CMFCore/tests
Modified Files:
test_ActionsTool.py
Log Message:
- Forward-port changes from 1.3 branch:
o Import normalizations
o Formatting cleanups
o Fix and test for tuple / list bugs in 'action_providers'
(Collector #42).
=== CMF/CMFCore/tests/test_ActionsTool.py 1.5 => 1.6 ===
--- CMF/CMFCore/tests/test_ActionsTool.py:1.5 Sat Mar 9 12:23:43 2002
+++ CMF/CMFCore/tests/test_ActionsTool.py Fri Aug 30 11:19:13 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