'Script fails if cluster directory does not contain cluster.yml
There is no fallback to environment if an error occurs reading
YAML description.'

def test_missing_yaml_file(self):

    tmpdir = tempfile.mkdtemp()
    self.addCleanup(shutil.rmtree, tmpdir)
    options = BenchmarkOptions()
    options.parseOptions(['--cluster', tmpdir])
    with capture_stderr() as captured_stderr:
        exception = self.assertRaises(SystemExit, get_cluster, options, self.environ)
        self.assertIn('not    found', exception.args[0])
        self.assertIn(options.getUsage(), captured_stderr())
