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

Method test_delete_file

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

Source from the content-addressed store, hash-verified

2098 self.assertFileNotFound(p.unlink)
2099
2100 def test_delete_file(self):
2101 p = self.cls(self.base) / 'fileA'
2102 p._delete()
2103 self.assertFalse(p.exists())
2104 self.assertFileNotFound(p._delete)
2105
2106 def test_delete_dir(self):
2107 base = self.cls(self.base)

Callers

nothing calls this directly

Calls 5

assertFileNotFoundMethod · 0.95
assertFalseMethod · 0.80
clsMethod · 0.45
_deleteMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected