#NEWLINE# def test_group_permissions( self ) : #NEWLINE# #INDENT# " Retrieve a group's permissions from database " #NEWLINE# g1 = Group ( 'brotatos' ) #NEWLINE# g2 = Group ( 'sharkfest' ) #NEWLINE# p1 = GroupPermission ( 'pkg1' , 'brotatos' , True , False ) #NEWLINE# p2 = GroupPermission ( 'pkg1' , 'sharkfest' , True , True ) #NEWLINE# self . db . add_all ( [ g1 , g2 , p1 , p2 ] ) #NEWLINE# transaction . commit ( ) #NEWLINE# perms = self . access . group_permissions ( 'pkg1' , 'brotatos' ) #NEWLINE# self . assertEqual ( p1 , [ 'read' ] )