[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication/tests - testZopePublication.py:1.1.2.14
Jim Fulton
jim@zope.com
Tue, 5 Mar 2002 16:43:22 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/ZopePublication/tests
In directory cvs.zope.org:/tmp/cvs-serv2132/Zope/App/ZopePublication/tests
Modified Files:
Tag: Zope-3x-branch
testZopePublication.py
Log Message:
Hold on to your butts!
Major refactoring of Interface package to clean up the interfaces and
module structure.
Note especially, to verify interface implementstions,
use verifyObject or verifyClass from the Interface.Verify module:
from Interface.Verify import verifyClass
verifyClass(ISomeInterface, SomeClass)
=== Zope3/lib/python/Zope/App/ZopePublication/tests/testZopePublication.py 1.1.2.13 => 1.1.2.14 ===
from Zope.App.Security import SimpleSecurityPolicies
from Zope.App.ZopePublication.Traversers import DefaultTraverser
-from Interface import verify, instancesOfObjectImplements, Interface
+from Interface import Interface
+from Interface.Verify import verifyClass
+from Interface.Implements import instancesOfObjectImplements
from Zope.Testing.CleanUp import CleanUp # Base class w registry cleanup
from Zope.ComponentArchitecture import provideView, setDefaultViewName
@@ -94,7 +96,7 @@
def testInterfacesVerify(self):
for interface in instancesOfObjectImplements(self.klass):
- verify(interface, DefaultPublication)
+ verifyClass(interface, DefaultPublication)
def _createRequest(self, path, publication):
outstream = StringIO()