diff options
| author | Marko Tibold | 2012-01-13 23:01:16 +0100 |
|---|---|---|
| committer | Marko Tibold | 2012-01-13 23:01:16 +0100 |
| commit | 5f4096ca28d6c0b9ea98f43278789b38cf0d37bb (patch) | |
| tree | f60371cdcd3bf5a238d4a51674b2d625cd3d35d7 | |
| parent | 905dd2ed9d74c660cc59be87a816326841db2fcb (diff) | |
| download | django-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.py | 2 |
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>')) |
