def METHOD_NAME(self):
    md = dedent(
        """
        # Heading & 1
        ## Heading > 2
        ### Heading < 3
        """
    )
    expected = dedent(
        """
        Heading &amp; 1 - #heading-1
            Heading &gt; 2 - #heading-2
                Heading &lt; 3 - #heading-3
        """
    )
    toc = get_toc(get_markdown_toc(md))
    self.assertEqual(str(toc).strip(), expected)
    self.assertEqual(len(toc), 1)