def get_test_paths(config): # Set up test_paths test_paths = OrderedDict() for section in config.iterkeys(): if section.startswith("manifest:"): manifest_opts = config.get(section) url_base = manifest_opts.get("url_base", "/") test_paths[url_base] = { "tests_path": manifest_opts.get_path("tests"), "metadata_path": manifest_opts.get_path("metadata")} return test_paths