Kaydet (Commit) e3d782fe authored tarafından Tim Graham's avatar Tim Graham

Added the response to an admin_views test assertion to aid debugging.

üst e6ca15c1
......@@ -162,8 +162,11 @@ class AdminViewBasicTestCase(TestCase):
content.
"""
self.assertEqual(response.status_code, 200)
self.assertLess(response.content.index(force_bytes(text1)), response.content.index(force_bytes(text2)),
failing_msg)
self.assertLess(
response.content.index(force_bytes(text1)),
response.content.index(force_bytes(text2)),
(failing_msg or '') + '\nResponse:\n' + response.content
)
class AdminViewBasicTest(AdminViewBasicTestCase):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment