def test_get_client_ip(test_state, router_data):
    """Test getting client IP.

    Args:
        test_state: A state.
        router_data: The router data fixture.
    """
    test_state.router = RouterData(router_data)
    assert test_state.router.session.client_ip == "127.0.0.1"
Test getting client IP.

    Args:
        test_state: A state.
        router_data: The router data fixture.
    
tests/units/test_state.py