Пример #1
0
def test_simple(hdfs_cluster):
    w = WebHDFS(hdfs_cluster, user="******")
    home = w.home_directory()
    assert home == "/user/testuser"
    with pytest.raises(PermissionError):
        w.mkdir("/root")
Пример #2
0
def test_simple(hdfs_cluster):
    w = WebHDFS(hdfs_cluster, user='******')
    home = w.home_directory()
    assert home == '/user/testuser'
    with pytest.raises(PermissionError):
        w.mkdir('/root')
Пример #3
0
def test_simple(hdfs_cluster):
    w = WebHDFS(hdfs_cluster, user='******')
    home = w.home_directory()
    assert home == '/user/testuser'