def test_parse_topic_constant_path(): expected = { "topic_constant": "clam", } path = TopicConstantServiceClient.topic_constant_path(**expected) # Check that the path construction is reversible. actual = TopicConstantServiceClient.parse_topic_constant_path(path) assert expected == actual
def test_topic_constant_path(): topic_constant = "squid" expected = "topicConstants/{topic_constant}".format(topic_constant=topic_constant, ) actual = TopicConstantServiceClient.topic_constant_path(topic_constant) assert expected == actual