[CMF-checkins] CVS: CMF/CMFCore/tests - test_ActionsTool.py:1.8

Yvo Schubbe schubbe@web.de
Mon, 6 Jan 2003 15:40:39 -0500


Update of /cvs-repository/CMF/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv21127/CMFCore/tests

Modified Files:
	test_ActionsTool.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_ActionsTool.py 1.7 => 1.8 ===
--- CMF/CMFCore/tests/test_ActionsTool.py:1.7	Wed Dec 11 17:20:36 2002
+++ CMF/CMFCore/tests/test_ActionsTool.py	Mon Jan  6 15:40:36 2003
@@ -1,5 +1,11 @@
+from unittest import TestCase, TestSuite, makeSuite, main
+
 import Zope
-from unittest import TestCase,TestSuite,makeSuite,main
+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.testcase import \
      SecurityRequestTest
@@ -10,8 +16,8 @@
 from Products.CMFCore.ActionInformation import ActionInformation
 from Products.CMFCore.Expression import Expression
 from Products.CMFCore.URLTool import URLTool
-from Products.CMFDefault.RegistrationTool import RegistrationTool
-from Products.CMFDefault.MembershipTool import MembershipTool
+from Products.CMFCore.RegistrationTool import RegistrationTool
+from Products.CMFCore.MembershipTool import MembershipTool
 
 class ActionsToolTests( SecurityRequestTest ):
 
@@ -116,6 +122,16 @@
                             'name': 'Test',
                             'visible': 1,
                             'category': 'object'}])
+
+    def test_interface(self):
+        from Products.CMFCore.interfaces.portal_actions \
+                import portal_actions as IActionsTool
+        from Products.CMFCore.interfaces.portal_actions \
+                import ActionProvider as IActionProvider
+
+        verifyClass(IActionsTool, ActionsTool)
+        verifyClass(IActionProvider, ActionsTool)
+
 
 def test_suite():
     return TestSuite((