def test_parse_language_constant_path(): expected = { "criterion_id": "clam", } path = LanguageConstantServiceClient.language_constant_path(**expected) # Check that the path construction is reversible. actual = LanguageConstantServiceClient.parse_language_constant_path(path) assert expected == actual
def test_language_constant_path(): criterion_id = "squid" expected = "languageConstants/{criterion_id}".format( criterion_id=criterion_id, ) actual = LanguageConstantServiceClient.language_constant_path(criterion_id) assert expected == actual