[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/AuthenticationService/tests - testAuthenticationService.py:1.3

Itamar Shtull-Trauring zope@itamarst.org
Fri, 6 Dec 2002 08:12:39 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services/AuthenticationService/tests
In directory cvs.zope.org:/tmp/cvs-serv5098/App/OFS/Services/AuthenticationService/tests

Modified Files:
	testAuthenticationService.py 
Log Message:
update IAuthenticateService for requirements of generic implementation

=== Zope3/lib/python/Zope/App/OFS/Services/AuthenticationService/tests/testAuthenticationService.py 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/App/OFS/Services/AuthenticationService/tests/testAuthenticationService.py:1.2	Wed Jul 17 12:54:18 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/AuthenticationService/tests/testAuthenticationService.py	Fri Dec  6 08:12:08 2002
@@ -70,14 +70,14 @@
     def testAuthenticate(self):
         auth = self._auth
         req = Request(('srichter', 'hello'))
-        pid = auth.authenticate(req)
+        pid = auth.authenticate(req).getId()
         self.assertEquals(pid, 'srichter')
         req = Request(('srichter', 'hello2'))
-        pid = auth.authenticate(req)
-        self.assertEquals(pid, None)
-        req = Request(('strichter', 'hello'))
-        pid = auth.authenticate(req)
-        self.assertEquals(pid, None)
+        p = auth.authenticate(req)
+        self.assertEquals(p, None)
+        req = Request(('doesnotexit', 'hello'))
+        principal = auth.authenticate(req)
+        self.assertEquals(principal, None)
 
     def testUnauthenticatedPrincipal(self):
         auth = self._auth