(self)
| 2887 | |
| 2888 | @mock_rename |
| 2889 | def test_move_dir_special_function(self): |
| 2890 | moved = [] |
| 2891 | def _copy(src, dst): |
| 2892 | moved.append((src, dst)) |
| 2893 | os_helper.create_empty_file(os.path.join(self.src_dir, 'child')) |
| 2894 | os_helper.create_empty_file(os.path.join(self.src_dir, 'child1')) |
| 2895 | shutil.move(self.src_dir, self.dst_dir, copy_function=_copy) |
| 2896 | self.assertEqual(len(moved), 3) |
| 2897 | |
| 2898 | def test_move_dir_caseinsensitive(self): |
| 2899 | # Renames a folder to the same name |
nothing calls this directly
no test coverage detected