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

Method test_move_file_symlink_to_dir

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

Source from the content-addressed store, hash-verified

2837 @os_helper.skip_unless_symlink
2838 @mock_rename
2839 def test_move_file_symlink_to_dir(self):
2840 filename = "bar"
2841 dst = os.path.join(self.src_dir, filename)
2842 os.symlink(self.src_file, dst)
2843 shutil.move(dst, self.dst_dir)
2844 final_link = os.path.join(self.dst_dir, filename)
2845 self.assertTrue(os.path.islink(final_link))
2846 self.assertTrue(os.path.samefile(self.src_file, final_link))
2847
2848 @os_helper.skip_unless_symlink
2849 @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