(self)
| 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 |
nothing calls this directly
no test coverage detected