Changeset 78af3d1 in OpenWorkouts-current for ow/tests/models/test_user.py
- Timestamp:
- Feb 9, 2019, 9:42:52 PM (5 years ago)
- Branches:
- current, feature/docs, master
- Children:
- 56caf3d
- Parents:
- 55470f9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ow/tests/models/test_user.py
r55470f9 r78af3d1 3 3 4 4 import pytest 5 from pyramid.security import Allow 5 from pyramid.security import Allow, Everyone, Deny, ALL_PERMISSIONS 6 6 7 7 from ow.models.root import OpenWorkouts … … 33 33 def test__acl__(self, root): 34 34 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 ] 36 40 assert root['john'].__acl__() == permissions 37 41
Note: See TracChangeset
for help on using the changeset viewer.