def test_parse_common_project_path(): expected = { "project": "nudibranch", } path = CampaignCriterionServiceClient.common_project_path(**expected) # Check that the path construction is reversible. actual = CampaignCriterionServiceClient.parse_common_project_path(path) assert expected == actual
def test_common_project_path(): project = "oyster" expected = "projects/{project}".format(project=project, ) actual = CampaignCriterionServiceClient.common_project_path(project) assert expected == actual