

def get_rendered_page(self, context, page, rendered_basename):
    pages = context.products.get('markdown_html').get(page)
    self.assertIsNotNone(pages)
    pages_by_name = {os.path.basename(f): os.path.join(outdir, page) for (outdir, files) in pages.items() for f in files}
    self.assertIn(rendered_basename, pages_by_name)
    return pages_by_name.get(rendered_basename)

dataset/ETHPy150Open pantsbuild/pants/tests/python/pants_test/backend/docgen/tasks/test_markdown_to_html.py MarkdownToHtmlTest.get_rendered_page/VarMisuse@59/76 `f`->`page`