Example #1
0
 def test_atomic_install_dev(self):
     devn = '/dev/null'
     tmp = atomic_tmp_file(devn)
     self.assertEqual(tmp, devn)
     atomic_install(tmp, devn)
Example #2
0
 def test_atomic_install(self):
     outf = self._get_test_out_file(".foo.gz")
     outf_tmp = atomic_tmp_file(outf)
     self._write_test_file(outf_tmp)
     atomic_install(outf_tmp, outf)
     self.assertTrue(os.path.exists(outf))