# SPDX-License-Identifier: AGPL-3.0-only
# Copyright (c) 2026 sol pbc

from __future__ import annotations

from solstone.apps.network.routes import _build_pair_link


def test_pair_link_matches_reference_vector() -> None:
    url = _build_pair_link(
        "192.0.2.42",
        7070,
        "a1b2c3d4e5f607181122334455667788",
        "deadbeefcafebabe0123456789abcdef",
    )

    assert (
        url
        == "https://go.solstone.app/p#0G0W000258DSX8DJRFAEBXG7308J4CT4ANK7F26YNPZEZJQYQAZ028T5CY4TQKFF"
    )
