コード例 #1
0
def test_parse_customer_path():
    expected = {
        "customer_id": "nudibranch",
    }
    path = ConversionActionServiceClient.customer_path(**expected)

    # Check that the path construction is reversible.
    actual = ConversionActionServiceClient.parse_customer_path(path)
    assert expected == actual
コード例 #2
0
def test_customer_path():
    customer_id = "oyster"
    expected = "customers/{customer_id}".format(customer_id=customer_id, )
    actual = ConversionActionServiceClient.customer_path(customer_id)
    assert expected == actual