Back to index

plone3  3.1.7
Private Member Functions
DCWorkflow.tests.test_exportimport._GuardChecker Class Reference
Inheritance diagram for DCWorkflow.tests.test_exportimport._GuardChecker:
Inheritance graph
[legend]

List of all members.

Private Member Functions

def _genGuardProps
def _assertGuard

Detailed Description

Definition at line 39 of file test_exportimport.py.


Member Function Documentation

def DCWorkflow.tests.test_exportimport._GuardChecker._assertGuard (   self,
  info,
  permissions,
  roles,
  groups,
  expr 
) [private]

Definition at line 49 of file test_exportimport.py.

00049 
00050     def _assertGuard( self, info, permissions, roles, groups, expr ):
00051 
00052         self.assertEqual( len( info[ 'guard_permissions' ] )
00053                         , len( permissions ) )
00054 
00055         for expected in permissions:
00056             self.failUnless( expected in info[ 'guard_permissions' ] )
00057 
00058         self.assertEqual( len( info[ 'guard_roles' ] )
00059                         , len( roles ) )
00060 
00061         for expected in roles:
00062             self.failUnless( expected in info[ 'guard_roles' ] )
00063 
00064         self.assertEqual( len( info[ 'guard_groups' ] )
00065                         , len( groups ) )
00066 
00067         for expected in groups:
00068             self.failUnless( expected in info[ 'guard_groups' ] )
00069 
00070         self.assertEqual( info[ 'guard_expr' ], expr )
00071 

Here is the caller graph for this function:

def DCWorkflow.tests.test_exportimport._GuardChecker._genGuardProps (   self,
  permissions,
  roles,
  groups,
  expr 
) [private]

Definition at line 41 of file test_exportimport.py.

00041 
00042     def _genGuardProps( self, permissions, roles, groups, expr ):
00043 
00044         return { 'guard_permissions'   : '; '.join( permissions )
00045                , 'guard_roles'         : '; '.join( roles )
00046                , 'guard_groups'        : '; '.join( groups )
00047                , 'guard_expr'          : expr
00048                }

Here is the caller graph for this function:


The documentation for this class was generated from the following file: