def test_parse_label_path():
    expected = {
        "customer_id": "oyster",
        "label_id": "nudibranch",
    }
    path = AdGroupCriterionLabelServiceClient.label_path(**expected)

    # Check that the path construction is reversible.
    actual = AdGroupCriterionLabelServiceClient.parse_label_path(path)
    assert expected == actual
def test_label_path():
    customer_id = "whelk"
    label_id = "octopus"
    expected = "customers/{customer_id}/labels/{label_id}".format(
        customer_id=customer_id,
        label_id=label_id,
    )
    actual = AdGroupCriterionLabelServiceClient.label_path(
        customer_id, label_id)
    assert expected == actual