def test_brokenAttributeName(self):
        """
        Check that microdom does its best to handle broken attribute names.
        The important thing is that it doesn't raise an exception.
        """
        input = '<body><h1><div al!\n ign="center">Foo</div></h1></body>'
        expected = ('<body><h1><div al="True" ign="center">'
                    'Foo</div></h1></body>')
        self.checkParsed(input, expected)

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