Beispiel #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)
Beispiel #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)
Beispiel #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)