def fake_access(path, mode):
  if mode & (os.W_OK | os.X_OK):
    return False
  else:
    return FakeFile.is_file_accessible(path)
Fake version of os.access where only reads are supported.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/devappserver2/python/stubs.py/fake_access