mirror of https://github.com/django/django.git
Added the response to an admin_views test assertion to aid debugging.
This commit is contained in:
parent
e6ca15c13f
commit
e3d782fe80
|
@ -162,8 +162,11 @@ class AdminViewBasicTestCase(TestCase):
|
||||||
content.
|
content.
|
||||||
"""
|
"""
|
||||||
self.assertEqual(response.status_code, 200)
|
self.assertEqual(response.status_code, 200)
|
||||||
self.assertLess(response.content.index(force_bytes(text1)), response.content.index(force_bytes(text2)),
|
self.assertLess(
|
||||||
failing_msg)
|
response.content.index(force_bytes(text1)),
|
||||||
|
response.content.index(force_bytes(text2)),
|
||||||
|
(failing_msg or '') + '\nResponse:\n' + response.content
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class AdminViewBasicTest(AdminViewBasicTestCase):
|
class AdminViewBasicTest(AdminViewBasicTestCase):
|
||||||
|
|
Loading…
Reference in New Issue