def test_parse_ad_group_path():
    expected = {
        "customer_id": "cuttlefish",
        "ad_group_id": "mussel",
    }
    path = RecommendationServiceClient.ad_group_path(**expected)

    # Check that the path construction is reversible.
    actual = RecommendationServiceClient.parse_ad_group_path(path)
    assert expected == actual
def test_ad_group_path():
    customer_id = "oyster"
    ad_group_id = "nudibranch"
    expected = "customers/{customer_id}/adGroups/{ad_group_id}".format(
        customer_id=customer_id,
        ad_group_id=ad_group_id,
    )
    actual = RecommendationServiceClient.ad_group_path(customer_id,
                                                       ad_group_id)
    assert expected == actual