def test_parse_feed_item_set_link_path(): expected = { "customer_id": "oyster", "feed_id": "nudibranch", "feed_item_set_id": "cuttlefish", "feed_item_id": "mussel", } path = FeedItemSetLinkServiceClient.feed_item_set_link_path(**expected) # Check that the path construction is reversible. actual = FeedItemSetLinkServiceClient.parse_feed_item_set_link_path(path) assert expected == actual
def test_feed_item_set_link_path(): customer_id = "squid" feed_id = "clam" feed_item_set_id = "whelk" feed_item_id = "octopus" expected = "customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}".format( customer_id=customer_id, feed_id=feed_id, feed_item_set_id=feed_item_set_id, feed_item_id=feed_item_id, ) actual = FeedItemSetLinkServiceClient.feed_item_set_link_path( customer_id, feed_id, feed_item_set_id, feed_item_id) assert expected == actual