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

Method assertFileNotFound

Lib/test/test_pathlib/test_pathlib.py:1173–1176  ·  view source on GitHub ↗
(self, func, *args, **kwargs)

Source from the content-addressed store, hash-verified

1171 os_helper.rmtree(self.base)
1172
1173 def assertFileNotFound(self, func, *args, **kwargs):
1174 with self.assertRaises(FileNotFoundError) as cm:
1175 func(*args, **kwargs)
1176 self.assertEqual(cm.exception.errno, errno.ENOENT)
1177
1178 def assertEqualNormCase(self, path_a, path_b):
1179 normcase = self.parser.normcase

Callers 6

test_unlinkMethod · 0.95
test_rmdirMethod · 0.95
test_delete_fileMethod · 0.95
test_renameMethod · 0.95
test_replaceMethod · 0.95

Calls 3

funcFunction · 0.50
assertRaisesMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected