MCPcopy Index your code
hub / github.com/pytest-dev/pytest / test_multiple_parts

Method test_multiple_parts

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

Source from the content-addressed store, hash-verified

253 assert newpath.purebasename == "samplefile"
254
255 def test_multiple_parts(self, path1):
256 newpath = path1.join("samplefile.py")
257 dirname, purebasename, basename, ext = newpath._getbyspec(
258 "dirname,purebasename,basename,ext"
259 )
260 assert str(path1).endswith(dirname) # be careful with win32 'drive'
261 assert purebasename == "samplefile"
262 assert basename == "samplefile.py"
263 assert ext == ".py"
264
265 def test_dotted_name_ext(self, path1):
266 newpath = path1.join("a.b.c")

Callers

nothing calls this directly

Calls 3

joinMethod · 0.80
_getbyspecMethod · 0.80
endswithMethod · 0.80

Tested by

no test coverage detected