Пример #1
0
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
Пример #2
0
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