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

Method test_newbasename

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

Source from the content-addressed store, hash-verified

106 assert newpath.dirpath("x") == path1.join("x")
107
108 def test_newbasename(self, path1):
109 newpath = path1.join("samplefile")
110 newbase = newpath.new(basename="samplefile2")
111 assert newbase.basename == "samplefile2"
112 assert newbase.dirpath() == newpath.dirpath()
113
114 def test_not_exists(self, path1):
115 assert not path1.join("does_not_exist").check()

Callers

nothing calls this directly

Calls 3

joinMethod · 0.80
newMethod · 0.80
dirpathMethod · 0.80

Tested by

no test coverage detected