'Run test mode with output to directory and verify that output files are
generated.'

def test_output_dir(self):

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