'If the decorated function raises an exception, the HTTP response code
is I{INTERNAL SERVER ERROR}.'

@validateLogging(_assertTracebackLogged(ArbitraryException))
def test_internalServerError(self, logger):

    request = dummyRequest('GET', '/foo/exception', Headers(), '')
    app = self.application(logger, None)
    self.render(app.app.resource(), request)
    self.assertEqual(INTERNAL_SERVER_ERROR, request._code)
