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

Method test_symlink_remove

testing/_py/test_local.py:1352–1357  ·  view source on GitHub ↗
(self, tmpdir)

Source from the content-addressed store, hash-verified

1350 assert not linkpath.check(link=0, dir=1)
1351
1352 def test_symlink_remove(self, tmpdir):
1353 linkpath = tmpdir.join("test")
1354 linkpath.mksymlinkto(linkpath) # point to itself
1355 assert linkpath.check(link=1)
1356 linkpath.remove()
1357 assert not linkpath.check()
1358
1359 def test_realpath_file(self, tmpdir):
1360 linkpath = tmpdir.join("test")

Callers

nothing calls this directly

Calls 4

joinMethod · 0.80
mksymlinktoMethod · 0.80
removeMethod · 0.80
checkMethod · 0.45

Tested by

no test coverage detected