MCPcopy
hub / github.com/pytest-dev/pytest / test_join_to_root

Method test_join_to_root

testing/_py/test_local.py:1431–1434  ·  view source on GitHub ↗
(self, path1)

Source from the content-addressed store, hash-verified

1429 assert p1.common(p2) == "/"
1430
1431 def test_join_to_root(self, path1):
1432 root = path1.parts()[0]
1433 assert len(str(root)) == 1
1434 assert str(root.join("a")) == "/a"
1435
1436 def test_join_root_to_root_with_no_abs(self, path1):
1437 nroot = path1.join("/")

Callers

nothing calls this directly

Calls 2

partsMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected