コード例 #1
0
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
コード例 #2
0
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