Lines Matching refs:filename2
55 def _do_copyish(self, filename1, filename2): argument
58 os.rename(filename1, filename2 + ".new")
59 self.assertFalse(os.path.isfile(filename2))
61 os.rename(filename1 + ".new", filename2)
63 self.assertTrue(os.path.isfile(filename2))
65 shutil.copy(filename1, filename2 + ".new")
68 shutil.move(filename1, filename2 + ".new")
69 self.assertFalse(os.path.exists(filename2))
71 shutil.move(filename1 + ".new", filename2)
72 self.assertFalse(os.path.exists(filename2 + '.new'))
79 shutil.copy2(filename1, filename2 + ".new")
82 self.assertFalse(os.path.exists(filename2 + '.new'))