def test_get_headers(test_state, router_data, router_data_headers):
    """Test getting client headers.

    Args:
        test_state: A state.
        router_data: The router data fixture.
        router_data_headers: The expected headers.
    """
    print(router_data_headers)
    test_state.router = RouterData(router_data)
    print(test_state.router.headers)
    assert dataclasses.asdict(test_state.router.headers) == {
        format.to_snake_case(k): v for k, v in router_data_headers.items()
    } | {
        "raw_headers": {
            "_data": tuple(sorted((k, v) for k, v in router_data_headers.items()))
        }
    }
Test getting client headers.

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