def METHOD_NAME(dash_duo):
    """
    Checks that NavLink is able to automatically set active status based on the
    current location.
    """
    app = Dash()
    app.layout = html.Div(
        [
            # dcc.Location is required to fire events to History
            dcc.Location(id="url"),
            NavLink("Page 1", id="page-1-link", href="/page-1", active=True),
            NavLink("Page 2", id="page-2-link", href="/page-2", active=False),
            NavLink(
                "Page 3", id="page-3-link", href="/page-3", active="partial"
            ),
            NavLink(
                "Page 3 - extra",
                id="page-3-extra-link",
                href="/page-3/extra",
                active="exact",
            ),
            html.Div(id="content"),
        ]
    )
    dash_duo.start_server(app)
    assert "active" in dash_duo.wait_for_element_by_id(
        "page-1-link"
    ).get_attribute("class")
    assert "active" not in dash_duo.wait_for_element_by_id(
        "page-2-link"
    ).get_attribute("class")
    assert "active" not in dash_duo.wait_for_element_by_id(
        "page-3-link"
    ).get_attribute("class")
    assert "active" not in dash_duo.wait_for_element_by_id(
        "page-3-extra-link"
    ).get_attribute("class")
    dash_duo.wait_for_element_by_id("page-3-link").click()
    assert "active" in dash_duo.wait_for_element_by_id(
        "page-1-link"
    ).get_attribute("class")
    assert "active" not in dash_duo.wait_for_element_by_id(
        "page-2-link"
    ).get_attribute("class")
    assert "active" in dash_duo.wait_for_element_by_id(
        "page-3-link"
    ).get_attribute("class")
    assert "active" not in dash_duo.wait_for_element_by_id(
        "page-3-extra-link"
    ).get_attribute("class")
    dash_duo.wait_for_element_by_id("page-3-extra-link").click()
    assert "active" in dash_duo.wait_for_element_by_id(
        "page-1-link"
    ).get_attribute("class")
    assert "active" not in dash_duo.wait_for_element_by_id(
        "page-2-link"
    ).get_attribute("class")
    assert "active" in dash_duo.wait_for_element_by_id(
        "page-3-link"
    ).get_attribute("class")
    assert "active" in dash_duo.wait_for_element_by_id(
        "page-3-extra-link"
    ).get_attribute("class")