Exemple #1
0
def test_parse_customer_client_path():
    expected = {
        "customer_id": "oyster",
        "client_customer_id": "nudibranch",
    }
    path = CustomerClientServiceClient.customer_client_path(**expected)

    # Check that the path construction is reversible.
    actual = CustomerClientServiceClient.parse_customer_client_path(path)
    assert expected == actual
Exemple #2
0
def test_customer_client_path():
    customer_id = "whelk"
    client_customer_id = "octopus"
    expected = "customers/{customer_id}/customerClients/{client_customer_id}".format(
        customer_id=customer_id,
        client_customer_id=client_customer_id,
    )
    actual = CustomerClientServiceClient.customer_client_path(
        customer_id, client_customer_id)
    assert expected == actual