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

Method test_move_file_symlink

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

Source from the content-addressed store, hash-verified

2828 @os_helper.skip_unless_symlink
2829 @mock_rename
2830 def test_move_file_symlink(self):
2831 dst = os.path.join(self.src_dir, 'bar')
2832 os.symlink(self.src_file, dst)
2833 shutil.move(dst, self.dst_file)
2834 self.assertTrue(os.path.islink(self.dst_file))
2835 self.assertTrue(os.path.samefile(self.src_file, self.dst_file))
2836
2837 @os_helper.skip_unless_symlink
2838 @mock_rename

Callers

nothing calls this directly

Calls 5

assertTrueMethod · 0.80
islinkMethod · 0.80
samefileMethod · 0.80
joinMethod · 0.45
moveMethod · 0.45

Tested by

no test coverage detected