[Zope3-checkins]
CVS: Zope3/src/zope/app/browser/services/registration/tests
- test_changeregistrations.py:1.2
Chris McDonough
chrism at plope.com
Wed Jan 14 17:55:51 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/browser/services/registration/tests
In directory cvs.zope.org:/tmp/cvs-serv5558/src/zope/app/browser/services/registration/tests
Modified Files:
test_changeregistrations.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/browser/services/registration/tests/test_changeregistrations.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/browser/services/registration/tests/test_changeregistrations.py:1.1 Sat Jun 21 17:22:03 2003
+++ Zope3/src/zope/app/browser/services/registration/tests/test_changeregistrations.py Wed Jan 14 17:55:20 2004
@@ -30,23 +30,22 @@
registry = TestingRegistrationStack('a', 'b', 'c')
request = TestRequest()
view = ChangeRegistrations(registry, request)
- view.setPrefix("Roles")
+ view.setPrefix("Pigs")
# Make sure we don't apply updates unless asked to
- request.form = {'Roles.active': 'disable'}
+ request.form = {'Pigs.active': 'disable'}
view.applyUpdates()
self.assertEqual(registry._data, ('a', 'b', 'c'))
# Now test disabling
- request.form = {'submit_update': '', 'Roles.active': 'disable'}
+ request.form = {'submit_update': '', 'Pigs.active': 'disable'}
view.applyUpdates()
self.assertEqual(registry._data, (None, 'a', 'b', 'c'))
# Now test enabling c
- request.form = {'submit_update': '', 'Roles.active': 'c'}
+ request.form = {'submit_update': '', 'Pigs.active': 'c'}
view.applyUpdates()
self.assertEqual(registry._data, ('c', 'a', 'b'))
-
def test_suite():
More information about the Zope3-Checkins
mailing list