mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-03 13:14:30 +03:00
py25, py26 along with Django12 can't handle assertDictEqual (it was introduced
in py27)
This commit is contained in:
parent
905dd2ed9d
commit
5f4096ca28
|
@ -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>'))
|
||||
|
|
Loading…
Reference in New Issue
Block a user