[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/ApplicationControl/tests - testZopeVersion.py:1.1.2.2
Philipp von Weitershausen
philikon@gmx.net
Wed, 10 Apr 2002 07:10:16 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/ApplicationControl/tests
In directory cvs.zope.org:/tmp/cvs-serv1664/OFS/ApplicationControl/tests
Modified Files:
Tag: Zope-3x-branch
testZopeVersion.py
Log Message:
Verify that class implements interface
=== Zope3/lib/python/Zope/App/OFS/ApplicationControl/tests/testZopeVersion.py 1.1.2.1 => 1.1.2.2 ===
from unittest import TestCase, TestSuite, main, makeSuite
+from Interface.Verify import verifyObject
+
from Zope.App.OFS.ApplicationControl.IZopeVersion import IZopeVersion
from Zope.App.OFS.ApplicationControl.ZopeVersion import ZopeVersion
import os
@@ -38,7 +40,7 @@
def _Test__new(self):
return ZopeVersion()
-
+
def _getZopeVersion(self):
"""example zope version implementation
"""
@@ -70,6 +72,9 @@
version = "%s%s" % (version_id, version_tag)
return version
+
+ def test_IVerify(self):
+ verifyObject(IZopeVersion, self._Test__new())
def test_ZopeVersion(self):
zope_version = self._Test__new()