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

Method test_basename_checks

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

Source from the content-addressed store, hash-verified

83 # assert par[:2] == [path1 / 'dirnoexist', path1]
84
85 def test_basename_checks(self, path1):
86 newpath = path1.join("sampledir")
87 assert newpath.check(basename="sampledir")
88 assert newpath.check(notbasename="xyz")
89 assert newpath.basename == "sampledir"
90
91 def test_basename(self, path1):
92 newpath = path1.join("sampledir")

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
checkMethod · 0.45

Tested by

no test coverage detected