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

Method test_mkdir_and_remove

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

Source from the content-addressed store, hash-verified

415 assert b.isdir()
416
417 def test_mkdir_and_remove(self, path1):
418 tmpdir = path1
419 with pytest.raises(error.EEXIST):
420 tmpdir.mkdir("sampledir")
421 new = tmpdir.join("mktest1")
422 new.mkdir()
423 assert new.check(dir=1)
424 new.remove()
425
426 new = tmpdir.mkdir("mktest")
427 assert new.check(dir=1)
428 new.remove()
429 assert tmpdir.join("mktest") == new
430
431 def test_move_file(self, path1):
432 p = path1.join("samplefile")

Callers

nothing calls this directly

Calls 4

joinMethod · 0.80
removeMethod · 0.80
mkdirMethod · 0.45
checkMethod · 0.45

Tested by

no test coverage detected