def test_prepare_inputs_sets_up_a_config_file(self): """ The job's input directory has a config.gem file that's readable to us. """ prepare_inputs(self.job) config_path = os.path.join(self.job.path, "config.gem") self.assertTrue(os.path.isfile(config_path)) self.assertTrue(os.access(config_path, os.R_OK))
def test_prepare_inputs_sets_up_a_config_file(self): """ The job's input directory has a config.gem file that's readable to us. """ prepare_inputs(self.job) config_path = os.path.join(self.job.path, "config.gem") self.assertTrue(os.path.isfile(config_path)) self.assertTrue(os.access(config_path, os.R_OK))
def test_prepare_inputs_sets_up_symlinks(self): """ The job's input directory has symbolic links to all the input files in the corresponding upload file set. """ prepare_inputs(self.job) for input in self.job.oq_params.upload.input_set.all(): input_path = os.path.join(self.job.path, os.path.basename(input.path)) self.assertTrue(os.path.islink(input_path)) self.assertEqual(input.path, os.path.realpath(input_path))
def test_prepare_inputs_sets_up_symlinks(self): """ The job's input directory has symbolic links to all the input files in the corresponding upload file set. """ prepare_inputs(self.job) for input in self.job.oq_params.upload.input_set.all(): input_path = os.path.join( self.job.path, os.path.basename(input.path)) self.assertTrue(os.path.islink(input_path)) self.assertEqual(input.path, os.path.realpath(input_path))