def test_parse_campaign_feed_path(): expected = { "customer": "cuttlefish", "campaign_feed": "mussel", } 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 = "oyster" campaign_feed = "nudibranch" expected = "customers/{customer}/campaignFeeds/{campaign_feed}".format( customer=customer, campaign_feed=campaign_feed, ) actual = CampaignFeedServiceClient.campaign_feed_path( customer, campaign_feed) assert expected == actual