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