'An exception report can be generated without request'

def test_no_request(self):

    try:
        raise ValueError(u"Can't    find    my    keys")
    except ValueError:
        (exc_type, exc_value, tb) = sys.exc_info()
    reporter = ExceptionReporter(None, exc_type, exc_value, tb)
    text = reporter.get_traceback_text()
    self.assertIn(u'ValueError', text)
    self.assertIn(u"Can't    find    my    keys", text)
    self.assertNotIn(u'Request    Method:', text)
    self.assertNotIn(u'Request    URL:', text)
    self.assertIn(u'Exception    Type:', text)
    self.assertIn(u'Exception    Value:', text)
    self.assertIn(u'Traceback:', text)
    self.assertIn(u'Request    data    not    supplied', text)
