[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security/tests - testPrincipalPermissionManager.py:1.1.2.10

Casey Duncan casey_duncan@yahoo.com
Sat, 9 Feb 2002 16:31:30 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Security/tests
In directory cvs.zope.org:/tmp/cvs-serv28424/lib/python/Zope/App/Security/tests

Modified Files:
      Tag: Zope-3x-branch
	testPrincipalPermissionManager.py 
Log Message:
Added getPrincipalsAndPermissions API to the PrincipalPermissionManager for
use by management views.


=== Zope3/lib/python/Zope/App/Security/tests/testPrincipalPermissionManager.py 1.1.2.9 => 1.1.2.10 ===
         self.failUnless((perm1,Allow) in perms)
         self.failUnless((perm2,Deny) in perms)
+        perms = manager.getPrincipalsAndPermissions()
+        self.failUnless((perm1,prin1,Allow) in perms)
+        self.failUnless((perm2,prin1,Deny) in perms)
 
     def testManyPrincipalsOnePermission(self):
         perm1 = permregistry.definePermission('Perm One', 'title').getId()