def test_parse_feed_item_set_path(): expected = { "customer_id": "nautilus", "feed_id": "scallop", "feed_item_set_id": "abalone", } path = FeedItemSetLinkServiceClient.feed_item_set_path(**expected) # Check that the path construction is reversible. actual = FeedItemSetLinkServiceClient.parse_feed_item_set_path(path) assert expected == actual
def test_feed_item_set_path(): customer_id = "cuttlefish" feed_id = "mussel" feed_item_set_id = "winkle" expected = "customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}".format( customer_id=customer_id, feed_id=feed_id, feed_item_set_id=feed_item_set_id, ) actual = FeedItemSetLinkServiceClient.feed_item_set_path( customer_id, feed_id, feed_item_set_id) assert expected == actual