def test_get_job_and_update_config(self): job_name = 'config_%s' % random_string() self.jenkins.create_job(job_name, EMPTY_JOB) self.assertJobIsPresent(job_name) config = self.jenkins[job_name].get_config() self.assertEquals(config.strip(), EMPTY_JOB.strip()) self.jenkins[job_name].update_config(EMPTY_JOB)
def test_get_job_and_update_config(jenkins): job_name = 'config_%s' % random_string() jenkins.create_job(job_name, EMPTY_JOB) job_present(jenkins, job_name) config = jenkins[job_name].get_config() assert config.strip() == EMPTY_JOB.strip() jenkins[job_name].update_config(EMPTY_JOB)