def test_parse_campaign_draft_path(): expected = { "customer_id": "mussel", "base_campaign_id": "winkle", "draft_id": "nautilus", } 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_id = "oyster" base_campaign_id = "nudibranch" draft_id = "cuttlefish" expected = "customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}".format( customer_id=customer_id, base_campaign_id=base_campaign_id, draft_id=draft_id, ) actual = CampaignDraftServiceClient.campaign_draft_path( customer_id, base_campaign_id, draft_id) assert expected == actual