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

Method test_directory_link

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

Source from the content-addressed store, hash-verified

262 os.remove(self.missing_link)
263
264 def test_directory_link(self):
265 os.symlink(self.dirlink_target, self.dirlink)
266 self.assertTrue(os.path.exists(self.dirlink))
267 self.assertTrue(os.path.isdir(self.dirlink))
268 self.assertTrue(os.path.islink(self.dirlink))
269 self.check_stat(self.dirlink, self.dirlink_target)
270
271 def test_file_link(self):
272 os.symlink(self.filelink_target, self.filelink)

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected