#NEWLINE# @ patch ( 'pypicloud.access.base.effective_principals' ) #NEWLINE# def test_everyone_permission( self , principals ) : #NEWLINE# #INDENT# " All users have 'everyone' permissions " #NEWLINE# settings = { #NEWLINE# #INDENT# 'package.mypkg.group.everyone' : 'r' , #NEWLINE# #UNINDENT# } #NEWLINE# principals . return_value = [ Everyone ] #NEWLINE# backend = self . _backend ( settings ) #NEWLINE# self . assertTrue ( backend . has_permission ( 'mypkg' , 'read' ) ) #NEWLINE# self . assertFalse ( backend . has_permission ( 'mypkg' , 'write' ) )