Exemplo n.º 1
0
def test_parse_label_path():
    expected = {
        "customer_id": "oyster",
        "label_id": "nudibranch",
    }
    path = AdGroupAdLabelServiceClient.label_path(**expected)

    # Check that the path construction is reversible.
    actual = AdGroupAdLabelServiceClient.parse_label_path(path)
    assert expected == actual
Exemplo n.º 2
0
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 = AdGroupAdLabelServiceClient.label_path(customer_id, label_id)
    assert expected == actual