def test_parse_feed_item_set_path(): expected = { "customer_id": "mussel", "feed_id": "winkle", "feed_item_set_id": "nautilus", } path = FeedItemSetServiceClient.feed_item_set_path(**expected) # Check that the path construction is reversible. actual = FeedItemSetServiceClient.parse_feed_item_set_path(path) assert expected == actual
def test_feed_item_set_path(): customer_id = "oyster" feed_id = "nudibranch" feed_item_set_id = "cuttlefish" 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 = FeedItemSetServiceClient.feed_item_set_path( customer_id, feed_id, feed_item_set_id) assert expected == actual