def test_yaml(self):
     """nesting/nesting.yaml"""
     codebase, configuration = config.load("./tests/nesting/nesting.yaml", self.rootdir)
     state = finder.find(self.rootdir, codebase, configuration)
     mapper = walkers.PlatformMapper(codebase)
     setmap = mapper.walk(state)
     self.assertDictEqual(setmap, self.expected_setmap, "Mismatch in setmap")
        max(1, logging.WARNING - 10 * (args.verbose - args.quiet)))
    rootdir = os.path.realpath(args.rootdir)

    # Load the configuration file into a dict
    if not util.ensure_yaml(args.config_file):
        logging.getLogger("codebasin").error(
            "Configuration file does not have YAML file extension.")
        sys.exit(1)
    codebase, configuration = config.load(args.config_file, rootdir)

    # Parse the source tree, and determine source line associations.
    # The trees and associations are housed in state.
    state = finder.find(rootdir, codebase, configuration)

    # Count lines for platforms
    platform_mapper = walkers.PlatformMapper(codebase)
    setmap = platform_mapper.walk(state)

    output_prefix = os.path.realpath(guess_project_name(args.config_file))

    # Print summary report
    if report_enabled("summary"):
        summary = report.summary(setmap)
        if summary is not None:
            print(summary)

    # Print clustering report
    if report_enabled("clustering"):
        clustering_output_name = output_prefix + "-dendrogram.png"
        clustering = report.clustering(clustering_output_name, setmap)
        if clustering is not None: