summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-02-15 14:08:01 +0100
committerChristian Heimes <christian@cheimes.de>2013-02-15 14:08:01 +0100
commit305455aa9ca548267dd0ae47c4139da2240e6db5 (patch)
tree5e4bd73bde3ad64dcdd5ee8286ce475585903277
parent07ee17021f3c4002d5d5d14cee836c4dc486abd6 (diff)
downloaddefusedxml-305455aa9ca548267dd0ae47c4139da2240e6db5.tar.gz
test for monkey patching
-rw-r--r--tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests.py b/tests.py
index 6637782..e637657 100644
--- a/tests.py
+++ b/tests.py
@@ -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):