MCPcopy Index your code
hub / github.com/RustPython/RustPython / assertFileNotFound

Method assertFileNotFound

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

Source from the content-addressed store, hash-verified

1180 os_helper.rmtree(self.base)
1181
1182 def assertFileNotFound(self, func, *args, **kwargs):
1183 with self.assertRaises(FileNotFoundError) as cm:
1184 func(*args, **kwargs)
1185 self.assertEqual(cm.exception.errno, errno.ENOENT)
1186
1187 def assertEqualNormCase(self, path_a, path_b):
1188 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