'A simple exception report can be generated'

def test_request_and_exception(self):

    try:
        request = self.rf.get(u'/test_view/')
        raise ValueError(u"Can't    find    my    keys")
    except ValueError:
        (exc_type, exc_value, tb) = sys.exc_info()
    reporter = ExceptionReporter(request, exc_type, exc_value, tb)
    html = reporter.get_traceback_html()
    self.assertIn(u'<h1>ValueError    at    /test_view/</h1>', html)
    self.assertIn(u'<pre    class="exception_value">Can&#39;t    find    my    keys</pre>', html)
    self.assertIn(u'<th>Request    Method:</th>', html)
    self.assertIn(u'<th>Request    URL:</th>', html)
    self.assertIn(u'<th>Exception    Type:</th>', html)
    self.assertIn(u'<th>Exception    Value:</th>', html)
    self.assertIn(u'<h2>Traceback    ', html)
    self.assertIn(u'<h2>Request    information</h2>', html)
    self.assertNotIn(u'<p>Request    data    not    supplied</p>', html)
