[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/tests - testPublisher.py:1.1.2.7
Jim Fulton
jim@zope.com
Tue, 5 Mar 2002 16:43:24 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/tests
In directory cvs.zope.org:/tmp/cvs-serv2132/Zope/Publisher/tests
Modified Files:
Tag: Zope-3x-branch
testPublisher.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/Publisher/tests/testPublisher.py 1.1.2.6 => 1.1.2.7 ===
from Zope.Publisher.IPublication import IPublication
-from Interface import verify, instancesOfObjectImplements
+from Interface.Verify import verifyClass
+from Interface.Implements import instancesOfObjectImplements
from StringIO import StringIO
@@ -76,7 +77,7 @@
def testInterfacesVerify(self):
for interface in instancesOfObjectImplements(DefaultPublication):
- verify(interface, DefaultPublication)
+ verifyClass(interface, DefaultPublication)
def testTraversalToItem(self):
res = self._publisherResults('/folder/item')