[CMF-checkins] CVS: CMF/CMFDefault/tests - test_DublinCore.py:1.2
Yvo Schubbe
schubbe@web.de
Mon, 6 Jan 2003 16:06:51 -0500
Update of /cvs-repository/CMF/CMFDefault/tests
In directory cvs.zope.org:/tmp/cvs-serv32676/CMFDefault/tests
Added Files:
test_DublinCore.py
Log Message:
Merged yuppie-collector096-branch:
- Cleaned up Interfaces and API Help. (Collector #96)
- Removed deprecated 'register' module and interface.
=== CMF/CMFDefault/tests/test_DublinCore.py 1.1 => 1.2 ===
--- /dev/null Mon Jan 6 16:06:50 2003
+++ CMF/CMFDefault/tests/test_DublinCore.py Mon Jan 6 16:06:47 2003
@@ -0,0 +1,34 @@
+from unittest import TestCase, TestSuite, makeSuite, main
+
+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.CMFDefault.DublinCore import DefaultDublinCoreImpl
+
+
+class DublinCoreTests(TestCase):
+
+ def test_interface(self):
+ from Products.CMFCore.interfaces.DublinCore \
+ import DublinCore as IDublinCore
+ from Products.CMFCore.interfaces.DublinCore \
+ import CatalogableDublinCore as ICatalogableDublinCore
+ from Products.CMFCore.interfaces.DublinCore \
+ import MutableDublinCore as IMutableDublinCore
+
+ verifyClass(IDublinCore, DefaultDublinCoreImpl)
+ verifyClass(ICatalogableDublinCore, DefaultDublinCoreImpl)
+ verifyClass(IMutableDublinCore, DefaultDublinCoreImpl)
+
+
+def test_suite():
+ return TestSuite((
+ makeSuite( DublinCoreTests ),
+ ))
+
+if __name__ == '__main__':
+ main(defaultTest='test_suite')