Changes in ow/tests/models/test_user.py [2f8a48f:78af3d1] in OpenWorkouts-current


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/tests/models/test_user.py

    r2f8a48f r78af3d1  
    33
    44import pytest
    5 from pyramid.security import Allow
     5from pyramid.security import Allow, Everyone, Deny, ALL_PERMISSIONS
    66
    77from ow.models.root import OpenWorkouts
     
    3333    def test__acl__(self, root):
    3434        uid = str(root['john'].uid)
    35         permissions = [(Allow, uid, 'edit'), (Allow, uid, 'view')]
     35        permissions = [
     36            (Allow, uid, 'view'),
     37            (Allow, uid, 'edit'),
     38            (Deny, Everyone, ALL_PERMISSIONS),
     39        ]
    3640        assert root['john'].__acl__() == permissions
    3741
Note: See TracChangeset for help on using the changeset viewer.