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

Method test_symlink_to

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

Source from the content-addressed store, hash-verified

116 self.assertTrue(self.ground.isdir(p))
117
118 def test_symlink_to(self):
119 if not self.ground.can_symlink:
120 self.skipTest('needs symlinks')
121 link = self.root.joinpath('linkA')
122 link.symlink_to('fileA')
123 self.assertTrue(self.ground.islink(link))
124 self.assertEqual(self.ground.readlink(link), 'fileA')
125
126
127class 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