[Zope3-checkins] CVS: Zope3/src/zope/app/publication/tests - test_browserpublication.py:1.3
Jim Fulton
jim@zope.com
Thu, 26 Dec 2002 13:53:13 -0500
Update of /cvs-repository/Zope3/src/zope/app/publication/tests
In directory cvs.zope.org:/tmp/cvs-serv20558/tests
Modified Files:
test_browserpublication.py
Log Message:
Updated to pass a false check flag when making grants to avoid errors
from checks for invalid permissions.
=== Zope3/src/zope/app/publication/tests/test_browserpublication.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/publication/tests/test_browserpublication.py:1.2 Wed Dec 25 09:13:08 2002
+++ Zope3/src/zope/app/publication/tests/test_browserpublication.py Thu Dec 26 13:53:13 2002
@@ -29,8 +29,7 @@
from zope.security.checker import defineChecker, NamesChecker
from zope.app.security.registries.principalregistry import principalRegistry
-from zope.app.security.grants.principalrolemanager \
- import principalRoleManager
+from zope.app.security.grants.principalrole import principalRoleManager
from zope.app.publication.zopepublication import ZopePublication
from zope.app.publication.browser import BrowserPublication
@@ -120,7 +119,8 @@
principalRegistry.defineDefaultPrincipal(
'tim', 'timbot', 'ai at its best')
- principalRoleManager.assignRoleToPrincipal('Manager', 'tim')
+ principalRoleManager.assignRoleToPrincipal('Manager', 'tim',
+ check=False)
# now place our object inside the application