def METHOD_NAME(client, app):
    """Test entrypoint validate password."""
    app.config['RERO_ILS_PASSWORD_MIN_LENGTH'] = 8
    app.config['RERO_ILS_PASSWORD_SPECIAL_CHAR'] = False
    res = client.post(url_for('api_user.password_validate'), json={})
    assert get_json(res)['message'] \
        .find('The password must be filled in') != -1
    assert res.status_code == 400
    res = client.post(
        url_for('api_user.password_validate'), json={'password': 'foo'})
    assert get_json(res)['message'] \
        .find('Field must be at least 8 characters long.') != -1
    assert res.status_code == 400
    res = client.post(
        url_for('api_user.password_validate'), json={'password': '12345678'})
    assert get_json(res)['message'] \
        .find('The password must contain a lower case character.') != -1
    assert res.status_code == 400
    res = client.post(
        url_for('api_user.password_validate'), json={'password': 'a2345678'})
    assert get_json(res)['message'] \
        .find('The password must contain a upper case character.') != -1
    assert res.status_code == 400
    res = client.post(
        url_for('api_user.password_validate'), json={'password': 'aaaaPPPP'})
    assert get_json(res)['message'] \
        .find('The password must contain a number.') != -1
    assert res.status_code == 400
    res = client.post(
        url_for('api_user.password_validate'), json={'password': 'FooBar123'})
    assert res.status_code == 200
    app.config['RERO_ILS_PASSWORD_SPECIAL_CHAR'] = True
    res = client.post(
        url_for('api_user.password_validate'), json={'password': 'FooBar123'})
    assert get_json(res)['message'] \
        .find('The password must contain a special character.') != -1
    assert res.status_code == 400
    res = client.post(
        url_for('api_user.password_validate'), json={'password': 'FooBar123$'})
    assert res.status_code == 200