def test_parse_campaign_feed_path(): expected = { "customer_id": "mussel", "campaign_id": "winkle", "feed_id": "nautilus", } path = CampaignFeedServiceClient.campaign_feed_path(**expected) # Check that the path construction is reversible. actual = CampaignFeedServiceClient.parse_campaign_feed_path(path) assert expected == actual
def test_campaign_feed_path(): customer_id = "oyster" campaign_id = "nudibranch" feed_id = "cuttlefish" expected = "customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}".format( customer_id=customer_id, campaign_id=campaign_id, feed_id=feed_id, ) actual = CampaignFeedServiceClient.campaign_feed_path( customer_id, campaign_id, feed_id) assert expected == actual