def test_label_path():
    customer = "winkle"
    label = "nautilus"
    expected = "customers/{customer}/labels/{label}".format(
        customer=customer,
        label=label,
    )
    actual = AdGroupAdLabelServiceClient.label_path(customer, label)
    assert expected == actual
def test_parse_label_path():
    expected = {
        "customer": "scallop",
        "label": "abalone",
    }
    path = AdGroupAdLabelServiceClient.label_path(**expected)

    # Check that the path construction is reversible.
    actual = AdGroupAdLabelServiceClient.parse_label_path(path)
    assert expected == actual