MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_joinpath

Method test_joinpath

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

Source from the content-addressed store, hash-verified

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