[Zope3-checkins] CVS: Zope3/src/zope/app/security/registries/tests
- test_principalregistry.py:1.9
Jim Fulton
cvs-admin at zope.org
Fri Nov 21 12:12:42 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/security/registries/tests
In directory cvs.zope.org:/tmp/cvs-serv31883/src/zope/app/security/registries/tests
Modified Files:
test_principalregistry.py
Log Message:
Changed to use the new ztapi module, which provides handy functions
for setting up adapters and views for tests. This is needed because
there are no-longer global adapter and view services sitting around as
module globals.
=== Zope3/src/zope/app/security/registries/tests/test_principalregistry.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/security/registries/tests/test_principalregistry.py:1.8 Sat Jun 7 01:46:05 2003
+++ Zope3/src/zope/app/security/registries/tests/test_principalregistry.py Fri Nov 21 12:12:11 2003
@@ -21,6 +21,7 @@
from zope.app.services.tests.placefulsetup import PlacefulSetup
from zope.app.services.servicenames import Adapters
from zope.interface import implements
+from zope.app.tests import ztapi
class Request:
@@ -45,7 +46,7 @@
from zope.component import getService
from zope.app.security.basicauthadapter import BasicAuthAdapter
from zope.app.interfaces.security import ILoginPassword
- getService(None,Adapters).provideAdapter(
+ ztapi.provideAdapter(
IHTTPCredentials, ILoginPassword, BasicAuthAdapter)
self.reg = PrincipalRegistry()
More information about the Zope3-Checkins
mailing list