diff options
author | Christian Heimes <christian@cheimes.de> | 2013-02-15 14:08:01 +0100 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-02-15 14:08:01 +0100 |
commit | 305455aa9ca548267dd0ae47c4139da2240e6db5 (patch) | |
tree | 5e4bd73bde3ad64dcdd5ee8286ce475585903277 | |
parent | 07ee17021f3c4002d5d5d14cee836c4dc486abd6 (diff) | |
download | defusedxml-305455aa9ca548267dd0ae47c4139da2240e6db5.tar.gz |
test for monkey patching
-rw-r--r-- | tests.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -449,6 +449,12 @@ class TestXmlRpc(DefusedTestCase): self.assertRaises(DTDForbidden, self.parse, self.xml_dtd, forbid_dtd=True) + def test_monkeypatch(self): + try: + xmlrpc.monkey_patch() + finally: + xmlrpc.unmonkey_patch() + class TestDefusedGzip(DefusedTestCase): def get_gzipped(self, length): |