def test_brokenSelfClosingTag(self):
        """
        Check that microdom does its best to handle broken self-closing tags
        The important thing is that it doesn't raise an exception.
        """
        self.checkParsed('<body><span /!\n></body>',
                         '<body><span></span></body>')
        self.checkParsed('<span!\n />', '<span></span>')

        Check that microdom does its best to handle broken self-closing tags
        The important thing is that it doesn't raise an exception.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_xml.py