MCPcopy Index your code
hub / github.com/python/cpython / test_unlink

Method test_unlink

Lib/test/test_pathlib/test_pathlib.py:2081–2085  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2079 self.assertEqual(expected_name, link.group(follow_symlinks=False))
2080
2081 def test_unlink(self):
2082 p = self.cls(self.base) / 'fileA'
2083 p.unlink()
2084 self.assertFileNotFound(p.stat)
2085 self.assertFileNotFound(p.unlink)
2086
2087 def test_unlink_missing_ok(self):
2088 p = self.cls(self.base) / 'fileAAA'

Callers

nothing calls this directly

Calls 3

assertFileNotFoundMethod · 0.95
clsMethod · 0.45
unlinkMethod · 0.45

Tested by

no test coverage detected