1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Merge pull request #1027 from intgr/debug_no_exc_message

Clearer explanation when exception has no message
This commit is contained in:
Tim Graham
2013-05-30 09:53:07 -07:00
2 changed files with 3 additions and 3 deletions

View File

@@ -178,7 +178,7 @@ class ExceptionReporterTests(TestCase):
reporter = ExceptionReporter(request, None, None, None)
html = reporter.get_traceback_html()
self.assertIn('<h1>Report at /test_view/</h1>', html)
self.assertIn('<pre class="exception_value">No exception supplied</pre>', html)
self.assertIn('<pre class="exception_value">No exception message supplied</pre>', html)
self.assertIn('<th>Request Method:</th>', html)
self.assertIn('<th>Request URL:</th>', html)
self.assertNotIn('<th>Exception Type:</th>', html)