Esempio n. 1
0
def test_parse_label_path():
    expected = {
        "customer_id": "winkle",
        "label_id": "nautilus",
    }
    path = CustomerLabelServiceClient.label_path(**expected)

    # Check that the path construction is reversible.
    actual = CustomerLabelServiceClient.parse_label_path(path)
    assert expected == actual
Esempio n. 2
0
def test_label_path():
    customer_id = "cuttlefish"
    label_id = "mussel"
    expected = "customers/{customer_id}/labels/{label_id}".format(customer_id=customer_id, label_id=label_id, )
    actual = CustomerLabelServiceClient.label_path(customer_id, label_id)
    assert expected == actual