Esempio n. 1
0
def test_root_path_fail_cases(root_path):
    with pytest.raises(ValueError):
        SimpleLock.set_root_path(root_path)
Esempio n. 2
0
def test_root_path(root_path):
    SimpleLock.set_root_path(root_path)
    assert SimpleLock.root_path == str(Path(root_path).expanduser().resolve())