Lines Matching refs:src_file
1391 src_file = os.path.join(src_dir, 'foo')
1392 write_file(src_file, 'foo')
1393 rv = shutil.copyfile(src_file, dst_file)
1395 self.assertEqual(read_file(src_file), read_file(dst_file))
1401 src_file = os.path.join(src_dir, 'foo')
1402 write_file(src_file, 'foo')
1403 self.assertRaises(SameFileError, shutil.copyfile, src_file, src_file)
1405 self.assertRaises(Error, shutil.copyfile, src_file, src_file)
1524 self.src_file = os.path.join(self.src_dir, filename)
1526 with open(self.src_file, "wb") as f:
1553 self._check_move_file(self.src_file, self.dst_file, self.dst_file)
1557 self._check_move_file(self.src_file, self.dst_dir, self.dst_file)
1608 self.assertRaises(shutil.Error, shutil.move, self.src_file, self.dst_dir)
1643 os.symlink(self.src_file, dst)
1646 self.assertTrue(os.path.samefile(self.src_file, self.dst_file))
1653 os.symlink(self.src_file, dst)
1657 self.assertTrue(os.path.samefile(self.src_file, final_link))
1687 rv = shutil.move(self.src_file, self.dst_dir)
1689 os.path.join(self.dst_dir, os.path.basename(self.src_file)))
1692 rv = shutil.move(self.src_file, os.path.join(self.dst_dir, 'bar'))
1700 shutil.move(self.src_file, self.dst_dir, copy_function=_copy)