def test_parse_campaign_draft_path(): expected = { "customer": "cuttlefish", "campaign_draft": "mussel", } path = CampaignDraftServiceClient.campaign_draft_path(**expected) # Check that the path construction is reversible. actual = CampaignDraftServiceClient.parse_campaign_draft_path(path) assert expected == actual
def test_campaign_draft_path(): customer = "oyster" campaign_draft = "nudibranch" expected = "customers/{customer}/campaignDrafts/{campaign_draft}".format(customer=customer, campaign_draft=campaign_draft, ) actual = CampaignDraftServiceClient.campaign_draft_path(customer, campaign_draft) assert expected == actual