Example #1
0
def test_parse_extension_feed_item_path():
    expected = {
        "customer_id": "squid",
        "feed_item_id": "clam",
    }
    path = CampaignExtensionSettingServiceClient.extension_feed_item_path(**expected)

    # Check that the path construction is reversible.
    actual = CampaignExtensionSettingServiceClient.parse_extension_feed_item_path(path)
    assert expected == actual
Example #2
0
def test_extension_feed_item_path():
    customer_id = "scallop"
    feed_item_id = "abalone"
    expected = "customers/{customer_id}/extensionFeedItems/{feed_item_id}".format(customer_id=customer_id, feed_item_id=feed_item_id, )
    actual = CampaignExtensionSettingServiceClient.extension_feed_item_path(customer_id, feed_item_id)
    assert expected == actual