def test_feed_path():
    customer = "winkle"
    feed = "nautilus"
    expected = "customers/{customer}/feeds/{feed}".format(
        customer=customer,
        feed=feed,
    )
    actual = CampaignServiceClient.feed_path(customer, feed)
    assert expected == actual
def test_parse_feed_path():
    expected = {
        "customer": "scallop",
        "feed": "abalone",
    }
    path = CampaignServiceClient.feed_path(**expected)

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