MCPcopy Index your code
hub / github.com/python/cpython / test_joinpath

Method test_joinpath

Lib/test/test_zipfile/_path/test_path.py:249–254  ·  view source on GitHub ↗
(self, alpharep)

Source from the content-addressed store, hash-verified

247
248 @pass_alpharep
249 def test_joinpath(self, alpharep):
250 root = zipfile.Path(alpharep)
251 a = root.joinpath("a.txt")
252 assert a.is_file()
253 e = root.joinpath("b").joinpath("d").joinpath("e.txt")
254 assert e.read_text(encoding="utf-8") == "content of e"
255
256 @pass_alpharep
257 def test_joinpath_multiple(self, alpharep):

Callers

nothing calls this directly

Calls 4

joinpathMethod · 0.95
is_fileMethod · 0.45
joinpathMethod · 0.45
read_textMethod · 0.45

Tested by

no test coverage detected