aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/tests/renderers.py
diff options
context:
space:
mode:
authorTom Christie2012-02-25 19:02:26 +0000
committerTom Christie2012-02-25 19:02:26 +0000
commit44b5d6120341c5fb90a0b3022d09f9ad78d9f836 (patch)
tree7c814bb0f01372d48c88300a71535e82b981a241 /djangorestframework/tests/renderers.py
parent1cde31c86d9423e9b7a7409c2ef2ba7c0500e47f (diff)
downloaddjango-rest-framework-44b5d6120341c5fb90a0b3022d09f9ad78d9f836.tar.bz2
Fix broken tests
Diffstat (limited to 'djangorestframework/tests/renderers.py')
-rw-r--r--djangorestframework/tests/renderers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/tests/renderers.py b/djangorestframework/tests/renderers.py
index 8eb78b74..fce4af64 100644
--- a/djangorestframework/tests/renderers.py
+++ b/djangorestframework/tests/renderers.py
@@ -381,8 +381,8 @@ class XMLRendererTestCase(TestCase):
renderer = XMLRenderer(None)
content = StringIO(renderer.render(self._complex_data, 'application/xml'))
- parser = XMLParser(None)
- complex_data_out, dummy = parser.parse(content)
+ parser = XMLParser()
+ complex_data_out, dummy = parser.parse(content, {}, [])
error_msg = "complex data differs!IN:\n %s \n\n OUT:\n %s" % (repr(self._complex_data), repr(complex_data_out))
self.assertEqual(self._complex_data, complex_data_out, error_msg)