5 assert acl.showRights(acl.READ | acl.WRITE) == "rw"
8 assert acl.readRights('read') & acl.READ
9 assert acl.readRights('read') & acl.LOOKUP
10 assert not acl.readRights('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__':