[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security/tests - testRolePermissionView.py:1.1.2.2
Jim Fulton
jim@zope.com
Sun, 6 Jan 2002 17:37:22 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Security/tests
In directory cvs.zope.org:/tmp/cvs-serv26044/tests
Modified Files:
Tag: Zope-3x-branch
testRolePermissionView.py
Log Message:
Added testing flag to RolePermissionView action so it doesn't try to
render a response page when testing functionality.
=== Zope3/lib/python/Zope/App/Security/tests/testRolePermissionView.py 1.1.2.1 => 1.1.2.2 ===
'r0': 'manager', 'r1': 'member',
'p0r0': '1', 'p0r1': '1', 'p1r0': '1',
- })
+ },
+ testing=1)
permissionRoles = self.view.permissionRoles()
for ip in range(len(permissionRoles)):
permissionRole = permissionRoles[ip]
@@ -89,7 +90,8 @@
'p0': 'read', 'p1': 'write',
'r0': 'manager', 'r1': 'member',
'p0r0': '1',
- })
+ },
+ testing=1)
permissionRoles = self.view.permissionRoles()
for ip in range(len(permissionRoles)):
permissionRole = permissionRoles[ip]