[CMF-checkins] CVS: CMF/CMFDefault/tests - test_DefaultWorkflow.py:1.1.2.1 test_DublinCore.py:1.1.2.1
Yvo Schubbe
schubbe@web.de
Fri, 20 Dec 2002 11:40:12 -0500
Update of /cvs-repository/CMF/CMFDefault/tests
In directory cvs.zope.org:/tmp/cvs-serv21557/CMFDefault/tests
Added Files:
Tag: yuppie-collector096-branch
test_DefaultWorkflow.py test_DublinCore.py
Log Message:
more interface cleanups:
- added interface tests and made them pass
=== Added File CMF/CMFDefault/tests/test_DefaultWorkflow.py ===
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.DefaultWorkflow import DefaultWorkflowDefinition
class DefaultWorkflowDefinitionTests(TestCase):
def test_interface(self):
from Products.CMFCore.interfaces.portal_workflow \
import WorkflowDefinition as IWorkflowDefinition
verifyClass(IWorkflowDefinition, DefaultWorkflowDefinition)
def test_suite():
return TestSuite((
makeSuite( DefaultWorkflowDefinitionTests ),
))
if __name__ == '__main__':
main(defaultTest='test_suite')
=== Added File CMF/CMFDefault/tests/test_DublinCore.py ===
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')