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