[CMF-checkins] CVS: CMF/CMFCore/tests - test_ActionProviderBase.py:1.8
Yvo Schubbe
schubbe@web.de
Mon, 6 Jan 2003 15:40:30 -0500
Update of /cvs-repository/CMF/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv21094/CMFCore/tests
Modified Files:
test_ActionProviderBase.py
Log Message:
Merged yuppie-collector096-branch:
- Cleaned up Interfaces and API Help. (Collector #96)
- Removed deprecated 'register' module and interface.
=== CMF/CMFCore/tests/test_ActionProviderBase.py 1.7 => 1.8 ===
--- CMF/CMFCore/tests/test_ActionProviderBase.py:1.7 Wed Jul 3 10:07:40 2002
+++ CMF/CMFCore/tests/test_ActionProviderBase.py Mon Jan 6 15:40:27 2003
@@ -1,5 +1,10 @@
import unittest
import Zope
+try:
+ from Interface.Verify import verifyClass
+except ImportError:
+ # for Zope versions before 2.6.0
+ from Interface import verify_class_implementation as verifyClass
from Products.CMFCore.tests.base.dummy import DummyTool
@@ -141,6 +146,12 @@
another_ids = map( idify, another.listActions() )
self.failIf( one_ids == another_ids )
self.assertEqual( old_ids, another_ids )
+
+ def test_interface(self):
+ from Products.CMFCore.interfaces.portal_actions \
+ import ActionProvider as IActionProvider
+
+ verifyClass(IActionProvider, ActionProviderBase)
def test_suite():
return unittest.TestSuite((