def test_parse_topic_constant_path(): expected = { "topic_id": "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_id = "squid" expected = "topicConstants/{topic_id}".format(topic_id=topic_id, ) actual = TopicConstantServiceClient.topic_constant_path(topic_id) assert expected == actual