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

Method test_listdir

testing/_py/test_local.py:173–178  ·  testing/_py/test_local.py::CommonFSTests.test_listdir
(self, path1)

Source from the content-addressed store, hash-verified

171 assert not l2.relto(l1)
172
173 def test_listdir(self, path1):
174 p = path1.listdir()
175 assert path1.join(class="st">"sampledir") in p
176 assert path1.join(class="st">"samplefile") in p
177 with pytest.raises(error.ENOTDIR):
178 path1.join(class="st">"samplefile").listdir()
179
180 def test_listdir_fnmatchstring(self, path1):
181 p = path1.listdir(class="st">"s*dir")

Callers

nothing calls this directly

Calls 2

listdirMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected