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

Method test_file_link

Lib/test/test_os/test_windows.py:271–276  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

269 self.check_stat(self.dirlink, self.dirlink_target)
270
271 def test_file_link(self):
272 os.symlink(self.filelink_target, self.filelink)
273 self.assertTrue(os.path.exists(self.filelink))
274 self.assertTrue(os.path.isfile(self.filelink))
275 self.assertTrue(os.path.islink(self.filelink))
276 self.check_stat(self.filelink, self.filelink_target)
277
278 def _create_missing_dir_link(self):
279 'Create a "directory" link to a non-existent target'

Callers

nothing calls this directly

Calls 5

check_statMethod · 0.95
assertTrueMethod · 0.80
islinkMethod · 0.80
existsMethod · 0.45
isfileMethod · 0.45

Tested by

no test coverage detected