def test_parse_campaign_simulation_path(): expected = { "customer_id": "cuttlefish", "campaign_id": "mussel", "type": "winkle", "modification_method": "nautilus", "start_date": "scallop", "end_date": "abalone", } path = CampaignSimulationServiceClient.campaign_simulation_path(**expected) # Check that the path construction is reversible. actual = CampaignSimulationServiceClient.parse_campaign_simulation_path( path) assert expected == actual
def test_campaign_simulation_path(): customer_id = "squid" campaign_id = "clam" type = "whelk" modification_method = "octopus" start_date = "oyster" end_date = "nudibranch" expected = "customers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date}".format( customer_id=customer_id, campaign_id=campaign_id, type=type, modification_method=modification_method, start_date=start_date, end_date=end_date, ) actual = CampaignSimulationServiceClient.campaign_simulation_path( customer_id, campaign_id, type, modification_method, start_date, end_date) assert expected == actual