'If _validate_responses is False, then JSON is not validated.'

@validateLogging(_assertRequestLogged('/foo/badresponse', 'GET'))
def test_responseNoValidation(self, logger):

    self.patch(_infrastructure, '_validate_responses', False)
    request = dummyRequest('GET', '/foo/badresponse', Headers({'content-type': ['application/json']}), '')
    app = self.Application(logger, None)
    render(app.app.resource(), request)
    self.assertEqual(request._code, OK)
