diff options
| author | Tim Graham <timograham@gmail.com> | 2015-12-28 11:25:46 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-12-28 11:25:46 -0500 |
| commit | e3d782fe804a94b2fe7c8a18b95d9fb41fb9119c (patch) | |
| tree | 3f10cb557ce71579f79ca707a7a14de13b5d754c /tests/admin_views/tests.py | |
| parent | e6ca15c13f30e1433f91507c9f20743b7eb4725b (diff) | |
Added the response to an admin_views test assertion to aid debugging.
Diffstat (limited to 'tests/admin_views/tests.py')
| -rw-r--r-- | tests/admin_views/tests.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index c73164f3fc..ac773f8177 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -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): |
