def test_no_dtd(self):
        xml = '<?xml version="1.0" standalone="no"?><!DOCTYPE example SYSTEM "http://example.com/example.dtd">'
        with self.assertRaises(DTDForbidden):
            next(serializers.deserialize('xml', xml))
The XML deserializer shouldn't allow a DTD.
dataset/ETHPy150Open django/django/tests/serializers/test_xml.py/XmlSerializerTestCase.test_no_dtd