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

Method test_exists

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

Source from the content-addressed store, hash-verified

116 assert path1.join("does_not_exist").check(exists=0)
117
118 def test_exists(self, path1):
119 assert path1.join("samplefile").check()
120 assert path1.join("samplefile").check(exists=1)
121 assert path1.join("samplefile").exists()
122 assert path1.join("samplefile").isfile()
123 assert not path1.join("samplefile").isdir()
124
125 def test_dir(self, path1):
126 # print repr(path1.join("sampledir"))

Callers

nothing calls this directly

Calls 5

joinMethod · 0.80
checkMethod · 0.45
existsMethod · 0.45
isfileMethod · 0.45
isdirMethod · 0.45

Tested by

no test coverage detected