[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/Browser/tests - testAttributePublisher.py:1.1.2.8

Jim Fulton jim@zope.com
Tue, 5 Mar 2002 16:43:23 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv2132/Zope/Publisher/Browser/tests

Modified Files:
      Tag: Zope-3x-branch
	testAttributePublisher.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/Browser/tests/testAttributePublisher.py 1.1.2.7 => 1.1.2.8 ===
 from Zope.Publisher.Browser.IBrowserPublisher import IBrowserPublisher
 
-from Interface import verify, instancesOfObjectImplements
+from Interface.Verify import verifyClass
+from Interface.Implements import instancesOfObjectImplements
 
 class Presentation(AttributePublisher):
     index = 'index'
@@ -28,7 +29,7 @@
 
     def testInterfacesVerify(self):
         for interface in instancesOfObjectImplements(Presentation):
-            verify(interface, Presentation)
+            verifyClass(interface, Presentation)
 
     def testBrowserDefault(self):
         self.assertEquals(self.pres.browser_default(None),