Example #1
0
def test_parse_customer_label_path():
    expected = {
        "customer_id": "oyster",
        "label_id": "nudibranch",
    }
    path = CustomerLabelServiceClient.customer_label_path(**expected)

    # Check that the path construction is reversible.
    actual = CustomerLabelServiceClient.parse_customer_label_path(path)
    assert expected == actual
Example #2
0
def test_customer_label_path():
    customer_id = "whelk"
    label_id = "octopus"
    expected = "customers/{customer_id}/customerLabels/{label_id}".format(customer_id=customer_id, label_id=label_id, )
    actual = CustomerLabelServiceClient.customer_label_path(customer_id, label_id)
    assert expected == actual