'Verify sending large \'password\' raises the right exception.'

def test_authenticate_password_too_large(self):

    length = (CONF.identity.max_password_length + 1)
    body_dict = _build_user_auth(username='foo', password=('0' * length))
    self.assertRaises(exception.ValidationSizeError, self.controller.authenticate, self.make_request(), body_dict)
