[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/registration/tests - test_changeregistrations.py:1.1.38.1

Steve Alexander steve at cat-box.net
Wed Jan 14 15:58:42 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/browser/services/registration/tests
In directory cvs.zope.org:/tmp/cvs-serv17568/src/zope/app/browser/services/registration/tests

Modified Files:
      Tag: steveachrismcd-securitypolicy-branch
	test_changeregistrations.py 
Log Message:
Removed all other traces of roles from the core code.


=== Zope3/src/zope/app/browser/services/registration/tests/test_changeregistrations.py 1.1 => 1.1.38.1 ===
--- 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 15:58:12 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