

def test_acl_group_world(self):
    annotation = Annotation({
        'permissions': {
            'read': ['group:__world__'],
        },
    })
    actual = annotation.__acl__()
    expect = [(security.Allow, security.Everyone, 'read'), security.DENY_ALL]
    assert (actual == expect)

dataset/ETHPy150Open hypothesis/h/h/api/models/test/elastic_test.py TestAnnotation.test_acl_group_world/original