def test_parse_customer_extension_setting_path(): expected = { "customer_id": "whelk", "extension_type": "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
def test_customer_extension_setting_path(): customer_id = "squid" extension_type = "clam" expected = "customers/{customer_id}/customerExtensionSettings/{extension_type}".format(customer_id=customer_id, extension_type=extension_type, ) actual = CustomerExtensionSettingServiceClient.customer_extension_setting_path(customer_id, extension_type) assert expected == actual