def test_quadratic_blowup(self):
        xml_str = textwrap.dedent(u"""
        <?xml version="1.0"?>
        <!DOCTYPE bomb [
        <!ENTITY a "xxxxxxx">
        ]>
        <bomb>&a;&a;&a;&a;&a;</bomb>
        """).strip().encode('utf-8')
        self.assertRaises(ParseError, xml_document, xml_str)
Quadratic entitty expansion.
dataset/ETHPy150Open jdswinbank/Comet/comet/utility/test/test_xml.py/xml_security_TestCase.test_quadratic_blowup