'If the request body doesn\'t match the provided schema, then the
request automatically receives a I{BAD REQUEST} response.'

@validateLogging(_assertRequestLogged('/foo/validation', 'PUT'))
def test_validationError(self, logger):

    request = dummyRequest('PUT', '/foo/validation', Headers({'content-type': ['application/json']}), dumps({u'int': []}))
    app = self.Application(logger, None)
    render(app.app.resource(), request)
    response = loads(request._responseBody)
    self.assertEqual((request._code, response[u'description'], len(response[u'errors'])), (BAD_REQUEST, FAILED_INPUT_VALIDATION, 2))
