Exemplo n.º 1
0
def test_parse_phrase_set_path():
    expected = {
        "project": "octopus",
        "location": "oyster",
        "phrase_set": "nudibranch",
    }
    path = SpeechClient.phrase_set_path(**expected)

    # Check that the path construction is reversible.
    actual = SpeechClient.parse_phrase_set_path(path)
    assert expected == actual
Exemplo n.º 2
0
def test_parse_phrase_set_path():
    expected = {
        "project": "nautilus",
        "location": "scallop",
        "phrase_set": "abalone",
    }
    path = SpeechClient.phrase_set_path(**expected)

    # Check that the path construction is reversible.
    actual = SpeechClient.parse_phrase_set_path(path)
    assert expected == actual