'Test update_job is called'

@mock.patch('jenkins_jobs.builder.jenkins.Jenkins.job_exists')
@mock.patch('jenkins_jobs.builder.jenkins.Jenkins.get_jobs')
@mock.patch('jenkins_jobs.builder.jenkins.Jenkins.reconfig_job')
def test_update_jobs(self, jenkins_reconfig_job, jenkins_get_jobs, jenkins_job_exists):

    path = os.path.join(self.fixtures_path, 'cmd-002.yaml')
    args = ['--conf', self.default_config_file, 'update', path]
    self.execute_jenkins_jobs_with_args(args)
    jenkins_reconfig_job.assert_has_calls([mock.call(job_name, mock.ANY) for job_name in ['bar001', 'bar002', 'baz001', 'bam001']], any_order=True)
