def test_feed_item_path():
    customer_id = "oyster"
    feed_id = "nudibranch"
    feed_item_id = "cuttlefish"
    expected = "customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}".format(customer_id=customer_id, feed_id=feed_id, feed_item_id=feed_item_id, )
    actual = FeedItemServiceClient.feed_item_path(customer_id, feed_id, feed_item_id)
    assert expected == actual
def test_parse_feed_item_path():
    expected = {
        "customer_id": "mussel",
        "feed_id": "winkle",
        "feed_item_id": "nautilus",
    }
    path = FeedItemServiceClient.feed_item_path(**expected)

    # Check that the path construction is reversible.
    actual = FeedItemServiceClient.parse_feed_item_path(path)
    assert expected == actual