@patch('pypicloud.access.base.effective_principals')
    def test_authenticated_permission(self, principals):
        settings = {'package.mypkg.group.authenticated': 'r'}
        principals.return_value = [Authenticated]
        backend = self._backend(settings)
        self.assertTrue(backend.has_permission('mypkg', 'read'))
        self.assertFalse(backend.has_permission('mypkg', 'write'))
All logged-in users have 'authenticated' permissions
dataset/ETHPy150Open mathcamp/pypicloud/tests/test_access_backends.py/TestConfigBackend.test_authenticated_permission