

def test_quadratic_blowup(self):
    "\n        Quadratic entitty expansion.\n\n        To avoid this, we'll have to disable entity expansion altogether.\n        "
    xml_str = textwrap.dedent('\n        <?xml version="1.0"?>\n        <!DOCTYPE bomb [\n        <!ENTITY a "xxxxxxx">\n        ]>\n        <bomb>&a;&a;&a;&a;&a;</bomb>\n        ').strip().encode('utf-8')
    self.assertRaises(ParseError, xml_document, xml_str)

dataset/ETHPy150Open jdswinbank/Comet/comet/utility/test/test_xml.py xml_security_TestCase.test_quadratic_blowup/original