148
148
self.create_file('target', 'data in target\n')
149
149
self.assertRaises((IOError, OSError), self._fancy_rename,
150
150
'missingsource', 'target')
152
152
self.check_file_contents('target', 'data in target\n')
154
154
def test_fancy_rename_fails_if_source_and_target_missing(self):