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