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

Method test_symlink_to

Lib/test/test_pathlib/test_write.py:124–130  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

122 self.assertTrue(self.ground.isdir(p))
123
124 def test_symlink_to(self):
125 if not self.ground.can_symlink:
126 self.skipTest('needs symlinks')
127 link = self.root.joinpath('linkA')
128 link.symlink_to('fileA')
129 self.assertTrue(self.ground.islink(link))
130 self.assertEqual(self.ground.readlink(link), 'fileA')
131
132
133class ZipPathWriteTest(WriteTestBase, unittest.TestCase):

Callers

nothing calls this directly

Calls 7

skipTestMethod · 0.80
assertTrueMethod · 0.80
islinkMethod · 0.80
joinpathMethod · 0.45
symlink_toMethod · 0.45
assertEqualMethod · 0.45
readlinkMethod · 0.45

Tested by

no test coverage detected