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
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
def test_phrase_set_path(): project = "squid" location = "clam" phrase_set = "whelk" expected = "projects/{project}/locations/{location}/phraseSets/{phrase_set}".format( project=project, location=location, phrase_set=phrase_set, ) actual = SpeechClient.phrase_set_path(project, location, phrase_set) assert expected == actual
def test_phrase_set_path(): project = "cuttlefish" location = "mussel" phrase_set = "winkle" expected = "projects/{project}/locations/{location}/phraseSets/{phrase_set}".format( project=project, location=location, phrase_set=phrase_set, ) actual = SpeechClient.phrase_set_path(project, location, phrase_set) assert expected == actual