Beispiel #1
0
def _norm_root(root):
    return zkpath.normpath(zkpath.join("/", root))
Beispiel #2
0
 def assert_equal(parts, should_be):
     actual = zkpath.join(*parts)
     assert actual == should_be, actual
Beispiel #3
0
def _prefix_root(root, path):
    """ Prepend a root to a path. """
    return zkpath.normpath(zkpath.join(_norm_root(root), path.lstrip("/")))