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

Method test_move_dangling_symlink

Lib/test/test_shutil.py:2850–2857  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2848 @os_helper.skip_unless_symlink
2849 @mock_rename
2850 def test_move_dangling_symlink(self):
2851 src = os.path.join(self.src_dir, 'baz')
2852 dst = os.path.join(self.src_dir, 'bar')
2853 os.symlink(src, dst)
2854 dst_link = os.path.join(self.dst_dir, 'quux')
2855 shutil.move(dst, dst_link)
2856 self.assertTrue(os.path.islink(dst_link))
2857 self.assertEqual(os.path.realpath(src), os.path.realpath(dst_link))
2858
2859 @os_helper.skip_unless_symlink
2860 @mock_rename

Callers

nothing calls this directly

Calls 6

assertTrueMethod · 0.80
islinkMethod · 0.80
realpathMethod · 0.80
joinMethod · 0.45
moveMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected