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

Method test_move_dir_symlink

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

Source from the content-addressed store, hash-verified

2885 @os_helper.skip_unless_symlink
2886 @mock_rename
2887 def test_move_dir_symlink(self):
2888 src = os.path.join(self.src_dir, 'baz')
2889 dst = os.path.join(self.src_dir, 'bar')
2890 os.mkdir(src)
2891 os.symlink(src, dst)
2892 dst_link = os.path.join(self.dst_dir, 'quux')
2893 shutil.move(dst, dst_link)
2894 self.assertTrue(os.path.islink(dst_link))
2895 self.assertTrue(os.path.samefile(src, dst_link))
2896
2897 def test_move_return_value(self):
2898 rv = shutil.move(self.src_file, self.dst_dir)

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected