'Run test mode with output to directory in "config.xml" mode and verify
that output files are generated.'

def test_output_dir_config_xml(self):

    tmpdir = tempfile.mkdtemp()
    self.addCleanup(shutil.rmtree, tmpdir)
    args = ['test', os.path.join(self.fixtures_path, 'cmd-001.yaml'), '-o', tmpdir, '--config-xml']
    self.execute_jenkins_jobs_with_args(args)
    self.expectThat(os.path.join(tmpdir, 'foo-job', 'config.xml'), testtools.matchers.FileExists())
