def test_parse_ad_schedule_view_path(): expected = { "customer_id": "octopus", "campaign_id": "oyster", "criterion_id": "nudibranch", } path = AdScheduleViewServiceClient.ad_schedule_view_path(**expected) # Check that the path construction is reversible. actual = AdScheduleViewServiceClient.parse_ad_schedule_view_path(path) assert expected == actual
def test_ad_schedule_view_path(): customer_id = "squid" campaign_id = "clam" criterion_id = "whelk" expected = "customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id}".format( customer_id=customer_id, campaign_id=campaign_id, criterion_id=criterion_id, ) actual = AdScheduleViewServiceClient.ad_schedule_view_path( customer_id, campaign_id, criterion_id) assert expected == actual