[Zope3-checkins]
CVS: Zope3/src/zope/app/services/pluggableauth/tests
- test_pluggableauth.py:1.5.6.2
Jim Fulton
jim at zope.com
Fri Sep 12 15:16:05 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/services/pluggableauth/tests
In directory cvs.zope.org:/tmp/cvs-serv13470/src/zope/app/services/pluggableauth/tests
Modified Files:
Tag: parentgeddon-branch
test_pluggableauth.py
Log Message:
Can't have the tests passing, can we?
=== Zope3/src/zope/app/services/pluggableauth/tests/test_pluggableauth.py 1.5.6.1 => 1.5.6.2 ===
--- Zope3/src/zope/app/services/pluggableauth/tests/test_pluggableauth.py:1.5.6.1 Mon Sep 8 14:21:49 2003
+++ Zope3/src/zope/app/services/pluggableauth/tests/test_pluggableauth.py Fri Sep 12 15:15:34 2003
@@ -28,7 +28,7 @@
from zope.app.services.pluggableauth import BTreePrincipalSource, \
SimplePrincipal, PluggableAuthenticationService, \
- PrincipalAuthenticationView, PrincipalWrapper
+ PrincipalAuthenticationView
from zope.app.interfaces.services.pluggableauth import IUserSchemafied
from zope.app.interfaces.security import IPrincipal
@@ -73,10 +73,10 @@
self._slinkp2 = SimplePrincipal('slinkp2', '123')
self._chrism = SimplePrincipal('chrism', '123')
self._chrism2 = SimplePrincipal('chrism2', '123')
- self._one.setObject('slinkp', self._slinkp)
- self._one.setObject('chrism', self._chrism)
- self._two.setObject('slinkp2', self._slinkp2)
- self._two.setObject('chrism2', self._chrism2)
+ self._one['slinkp'] = self._slinkp
+ self._one['chrism'] = self._chrism
+ self._two['slinkp2'] = self._slinkp2
+ self._two['chrism2'] = self._chrism2
def getRequest(self, uid=None, passwd=None):
if uid is None:
@@ -134,12 +134,6 @@
auth = self._auth
self.failUnless(self._slinkp in auth.getPrincipals('slinkp'))
self.failUnless(self._slinkp2 in auth.getPrincipals('slinkp'))
-
-
- def testPrincipalWrapper(self):
- wrapper = PrincipalWrapper(self._slinkp, self._auth, 'wrong')
- self.assertEqual(wrapper.getId(), 'wrong')
-
def testPrincipalInterface(self):
verifyObject(IUserSchemafied, self._slinkp)
More information about the Zope3-Checkins
mailing list