[CMF-checkins] CVS: CMF/CMFCore/tests - test_DynamicType.py:1.1.2.1

Yvo Schubbe schubbe@web.de
Fri, 20 Dec 2002 11:40:03 -0500


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

Added Files:
      Tag: yuppie-collector096-branch
	test_DynamicType.py 
Log Message:
more interface cleanups:
- added interface tests and made them pass

=== Added File CMF/CMFCore/tests/test_DynamicType.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.CMFCore.DynamicType import DynamicType


class DynamicTypeTests(TestCase):

    def test_interface(self):
        from Products.CMFCore.interfaces.Dynamic \
                import DynamicType as IDynamicType

        verifyClass(IDynamicType, DynamicType)


def test_suite():
    return TestSuite((
        makeSuite( DynamicTypeTests ),
        ))

if __name__ == '__main__':
    main(defaultTest='test_suite')