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

Method test_mkdir_and_remove

testing/_py/test_local.py:417–429  ·  testing/_py/test_local.py::CommonFSTests.test_mkdir_and_remove
(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(class="st">"sampledir")
421 new = tmpdir.join(class="st">"mktest1")
422 new.mkdir()
423 assert new.check(dir=1)
424 new.remove()
425
426 new = tmpdir.mkdir(class="st">"mktest")
427 assert new.check(dir=1)
428 new.remove()
429 assert tmpdir.join(class="st">"mktest") == new
430
431 def test_move_file(self, path1):
432 p = path1.join(class="st">"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