Example #1
0
def test_customer_extension_setting_path():
    customer = "squid"
    customer_extension_setting = "clam"
    expected = "customers/{customer}/customerExtensionSettings/{customer_extension_setting}".format(
        customer=customer,
        customer_extension_setting=customer_extension_setting,
    )
    actual = CustomerExtensionSettingServiceClient.customer_extension_setting_path(
        customer, customer_extension_setting)
    assert expected == actual
Example #2
0
def test_parse_customer_extension_setting_path():
    expected = {
        "customer": "whelk",
        "customer_extension_setting": "octopus",
    }
    path = CustomerExtensionSettingServiceClient.customer_extension_setting_path(
        **expected)

    # Check that the path construction is reversible.
    actual = CustomerExtensionSettingServiceClient.parse_customer_extension_setting_path(
        path)
    assert expected == actual