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

Method test_newbasename

testing/_py/test_local.py:108–112  ·  testing/_py/test_local.py::CommonFSTests.test_newbasename
(self, path1)

Source from the content-addressed store, hash-verified

106 assert newpath.dirpath(class="st">"x") == path1.join(class="st">"x")
107
108 def test_newbasename(self, path1):
109 newpath = path1.join(class="st">"samplefile")
110 newbase = newpath.new(basename=class="st">"samplefile2")
111 assert newbase.basename == class="st">"samplefile2"
112 assert newbase.dirpath() == newpath.dirpath()
113
114 def test_not_exists(self, path1):
115 assert not path1.join(class="st">"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