Commit e3d782fe authored by Tim Graham's avatar Tim Graham
Browse files

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

parent e6ca15c1
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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):