aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarko Tibold2012-01-13 23:01:16 +0100
committerMarko Tibold2012-01-13 23:01:16 +0100
commit5f4096ca28d6c0b9ea98f43278789b38cf0d37bb (patch)
treef60371cdcd3bf5a238d4a51674b2d625cd3d35d7
parent905dd2ed9d74c660cc59be87a816326841db2fcb (diff)
downloaddjango-rest-framework-5f4096ca28d6c0b9ea98f43278789b38cf0d37bb.tar.bz2
py25, py26 along with Django12 can't handle assertDictEqual (it was introduced
in py27)
-rw-r--r--djangorestframework/tests/renderers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/tests/renderers.py b/djangorestframework/tests/renderers.py
index 9e10a32c..84e4390b 100644
--- a/djangorestframework/tests/renderers.py
+++ b/djangorestframework/tests/renderers.py
@@ -374,7 +374,7 @@ class XMLRendererTestCase(TestCase):
parser = XMLParser(None)
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.assertDictEqual(self._complex_data, complex_data_out, error_msg)
+ self.assertEqual(self._complex_data, complex_data_out, error_msg)
def assertXMLContains(self, xml, string):
self.assertTrue(xml.startswith('<?xml version="1.0" encoding="utf-8"?>\n<root>'))