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

Method test_parts

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

Source from the content-addressed store, hash-verified

65 assert not p.isfile()
66
67 def test_parts(self, path1):
68 newpath = path1.join("sampledir", "otherfile")
69 par = newpath.parts()[-3:]
70 assert par == [path1, path1.join("sampledir"), newpath]
71
72 revpar = newpath.parts(reverse=True)[:3]
73 assert revpar == [newpath, path1.join("sampledir"), path1]
74
75 def test_common(self, path1):
76 other = path1.join("sampledir")

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
partsMethod · 0.80

Tested by

no test coverage detected