def test_feed_path():
    customer = "oyster"
    feed = "nudibranch"
    expected = "customers/{customer}/feeds/{feed}".format(
        customer=customer,
        feed=feed,
    )
    actual = CustomerFeedServiceClient.feed_path(customer, feed)
    assert expected == actual
def test_parse_feed_path():
    expected = {
        "customer": "cuttlefish",
        "feed": "mussel",
    }
    path = CustomerFeedServiceClient.feed_path(**expected)

    # Check that the path construction is reversible.
    actual = CustomerFeedServiceClient.parse_feed_path(path)
    assert expected == actual