[Zope3-checkins] CVS: Zope3/src/zope/app/services/tests -
test_auth.py:1.21 test_user.py:1.4 test_roleservice.py:NONE
Chris McDonough
chrism at plope.com
Wed Jan 14 17:56:00 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/services/tests
In directory cvs.zope.org:/tmp/cvs-serv5558/src/zope/app/services/tests
Modified Files:
test_auth.py test_user.py
Removed Files:
test_roleservice.py
Log Message:
Merge security policy refactoring:
- Moved all role- and grant-related functionality into
zope.products.securitypolicy (and out of zope.app.security.grant).
The zope.products.securitypolicy implementation is exactly
the same as the old implementation; no changes were made
to the actual mechanics of role-permission or principal-permission
grants. The only real difference is that all functionality
that is the purview of what we want a security policy to have
control of is now in that one place.
- Created new modulealias directive which can be used to provide
aliases to older modules (to not break existing ZODBs when
module locations change).
- Added minor feature: "make debug" launches a debug session in the
spirit of Zope 2's "zopectl debug".
=== Zope3/src/zope/app/services/tests/test_auth.py 1.20 => 1.21 ===
--- Zope3/src/zope/app/services/tests/test_auth.py:1.20 Fri Nov 21 12:12:13 2003
+++ Zope3/src/zope/app/services/tests/test_auth.py Wed Jan 14 17:55:28 2004
@@ -86,18 +86,6 @@
self.assertEqual(auth['srichter'],
auth.getPrincipalByLogin('srichter'))
- def testAuthenticate(self):
- auth = self._auth
- req = Request(('srichter', 'hello'))
- pid = auth.authenticate(req).getId()
- self.assertEquals(pid, 'srichter')
- req = Request(('srichter', 'hello2'))
- 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
self.assertEqual(None, auth.unauthenticatedPrincipal())
=== Zope3/src/zope/app/services/tests/test_user.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/services/tests/test_user.py:1.3 Thu May 1 15:35:35 2003
+++ Zope3/src/zope/app/services/tests/test_user.py Wed Jan 14 17:55:29 2004
@@ -18,6 +18,7 @@
from unittest import TestCase, main, makeSuite
from zope.app.services.auth import User
+# XXX This is a test of a deprecated class. It will be going away.
class UserTest(TestCase):
def setUp(self):
=== Removed File Zope3/src/zope/app/services/tests/test_roleservice.py ===
More information about the Zope3-Checkins
mailing list