#NEWLINE# def test_all_user_perms( self ) : #NEWLINE# #INDENT# ' Fetch permissions on a package for all users ' #NEWLINE# settings = { #NEWLINE# #INDENT# 'package.mypkg.user.u1' : 'r' , #NEWLINE# 'package.mypkg.user.u2' : 'rw' , #NEWLINE# #UNINDENT# } #NEWLINE# backend = self . _backend ( settings ) #NEWLINE# perms = backend . user_permissions ( 'mypkg' ) #NEWLINE# self . assertEqual ( perms , { #NEWLINE# #INDENT# 'u1' : [ 'read' ] , #NEWLINE# 'u2' : [ 'read' , 'write' ] , #NEWLINE# #UNINDENT# } )