5 assert acl.showRights(acl.READ | acl.WRITE) == "rw"
8 assert acl.crights('read') & acl.READ
9 assert acl.crights('read') & acl.LOOKUP
10 assert not acl.crights('read') & acl.WRITE
13 assert acl.ACL.retrieve('/afs/athena.mit.edu/contrib/bitbucket2').pos['system:anyuser'] & acl.WRITE
14 assert acl.ACL.retrieve('/afs/athena.mit.edu/user/t/a/tabbott').neg['yuranlu'] & acl.USR0
16 def test_getCallerAccess():
17 assert acl.getCallerAccess('/afs/athena.mit.edu/contrib/bitbucket2') & acl.WRITE
19 if __name__ == '__main__':