

def test_rst_render_failure_fail(self):
    bad_rst.create_file('bad.rst', contents=dedent('\n    A bad link:\n\n    * `RB #2363 https://rbcommons.com/s/twitter/r/2363/>`_\n    '))
    bad_rst = self.make_target(':bad_rst', target_type=Page, source='bad.rst')
    task = self.create_task(self.context(target_roots=[bad_rst]))
    with self.assertRaises(TaskError):
        task.execute()

dataset/ETHPy150Open pantsbuild/pants/tests/python/pants_test/backend/docgen/tasks/test_markdown_to_html.py MarkdownToHtmlTest.test_rst_render_failure_fail/VarMisuse@10/16 `self`->`bad_rst`