def METHOD_NAME():
    assert 'error' in client.conf(
        {
            "127.0.0.1:7081": {
                "client_ip": {"source": '127.0.0.1'},
                "pass": "applications/client_ip",
            }
        },
        'listeners',
    ), 'invalid header'
    def check_invalid_source(source):
        assert 'error' in client.conf(
            {
                "127.0.0.1:7081": {
                    "client_ip": {
                        "header": "X-Forwarded-For",
                        "source": source,
                    },
                    "pass": "applications/client_ip",
                }
            },
            'listeners',
        ), 'invalid source'
    check_invalid_source(None)
    check_invalid_source('a')
    check_invalid_source(['a'])