def METHOD_NAME(self):
    path = self.path('file')
    open(path, 'w').close()
    os.chmod(path, 0o765)
    rq = requests.get(f'{url}/api/filesystem/stat/{path}')
    assert rq.status_code == 200
    data = rq.json()
    assert data['name'] == 'file'
    assert data['path'] == path
    assert data['isDir'] == False
    assert data['isFile'] == True
    assert data['isLink'] == False
    assert data['mode'] == 0o100765
    assert data['uid'] == os.stat(path).st_uid
    assert data['gid'] == os.stat(path).st_gid
    assert data['size'] == 0