[Zope-Checkins] CVS: Zope3/lib/python/Zope/ComponentArchitecture/tests - testServiceManagerContainer.py:1.1.2.5

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


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

Modified Files:
      Tag: Zope-3x-branch
	testServiceManagerContainer.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/ComponentArchitecture/tests/testServiceManagerContainer.py 1.1.2.4 => 1.1.2.5 ===
      import IServiceManagerContainer
 from Zope.ComponentArchitecture.Exceptions import ComponentLookupError
-from Interface import verify
+from Interface.Verify import verifyObject
 
 class ServiceManager:
 
@@ -55,7 +55,7 @@
     container that has no service manager."""
 
     def testIServiceManagerContainerVerify(self):
-        verify(IServiceManagerContainer, self._Test__new())
+        verifyObject(IServiceManagerContainer, self._Test__new())
     
     def testHas(self):
         smc=self._Test__new()