[Zope3-checkins] CVS: Zope3/src/zope/app/services/tests - test_auth.py:1.14
Steve Alexander
steve@cat-box.net
Tue, 3 Jun 2003 10:50:39 -0400
Update of /cvs-repository/Zope3/src/zope/app/services/tests
In directory cvs.zope.org:/tmp/cvs-serv1014/src/zope/app/services/tests
Modified Files:
test_auth.py
Log Message:
None is not a valid name for an object in a container.
Fixed formatting.
New style implements().
=== Zope3/src/zope/app/services/tests/test_auth.py 1.13 => 1.14 ===
--- Zope3/src/zope/app/services/tests/test_auth.py:1.13 Thu May 1 15:35:35 2003
+++ Zope3/src/zope/app/services/tests/test_auth.py Tue Jun 3 10:50:38 2003
@@ -28,10 +28,11 @@
from zope.app.interfaces.services.configuration import Active
from zope.app.container.tests.test_icontainer import BaseTestIContainer
+from zope.interface import implements
class Request:
- __implements__ = IHTTPCredentials
+ implements(IHTTPCredentials)
def __init__(self, lpw):
self.__lpw = lpw
@@ -61,13 +62,14 @@
self.createServiceManager(folder)
default = traverse(folder, '++etc++site/default')
- key = default.setObject("AuthenticationService", AuthenticationService())
+ key = default.setObject("AuthenticationService",
+ AuthenticationService())
auth = traverse(default, key)
path = getPath(auth)
configuration = ServiceConfiguration(Authentication, path)
configure = default.getConfigurationManager()
- key = configure.setObject(None, configuration)
+ key = configure.setObject('', configuration)
traverse(configure, key).status = Active
auth.setObject('srichter', User('srichter', 'Stephan', 'Richter',