示例#1
0
 def test_check_fp_grp():
     assert FileOps.check_fp("LICENSE", FP.R_GRP)
     if sys.platform == "darwin":
         assert not FileOps.check_fp("LICENSE", FP.W_GRP)
     else:
         assert FileOps.check_fp("LICENSE", FP.W_GRP)
     assert not FileOps.check_fp("LICENSE", FP.X_GRP)
示例#2
0
 def test_check_fp_oth():
     assert FileOps.check_fp("LICENSE", FP.R_OTH)
     assert not FileOps.check_fp("LICENSE", FP.W_OTH)
     assert not FileOps.check_fp("LICENSE", FP.X_OTH)
示例#3
0
 def test_check_fp_usr():
     assert FileOps.check_fp("LICENSE", FP.R_USR | FP.W_USR)
     assert not FileOps.check_fp("LICENSE", FP.X_USR)