def test_surroundingCrap(self):
        """
        If a document is surrounded by non-xml text, the text should
        be remain in the XML.
        """
        s = "Hi<br> orders!"
        d = microdom.parseString(s, beExtremelyLenient=True)
        self.assertEqual(d.firstChild().toxml(),
                          "<html>Hi<br /> orders!</html>")

        If a document is surrounded by non-xml text, the text should
        be remain in the XML.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_xml.py