'Test that job xml output has been decoded before attempting to update'

@mock.patch('jenkins_jobs.builder.JenkinsManager.is_job', return_value=True)
@mock.patch('jenkins_jobs.builder.JenkinsManager.get_jobs')
@mock.patch('jenkins_jobs.builder.JenkinsManager.get_job_md5')
@mock.patch('jenkins_jobs.builder.JenkinsManager.update_job')
def test_update_jobs_decode_job_output(self, update_job_mock, get_job_md5_mock, get_jobs_mock, is_job_mock):

    update_job_mock.return_value = ([], 0)
    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)
    self.assertTrue(isinstance(update_job_mock.call_args[0][1], six.text_type))
