def test_brokenOpeningTag(self):
        """
        Check that microdom does its best to handle broken opening tags.
        The important thing is that it doesn't raise an exception.
        """
        input = '<body><h1><sp!\n an>Hello World!</span></h1></body>'
        expected = '<body><h1><sp an="True">Hello World!</sp></h1></body>'
        self.checkParsed(input, expected)

        Check that microdom does its best to handle broken opening 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