Exemple #1
0
def test_text_format():
    assert "{}".format(ActionListen()) == "Action('action_listen')"
    assert ("{}".format(ActionUtterTemplate("my_action_name")) ==
            "ActionUtterTemplate('my_action_name')")
    assert ("{}".format(ActionRetrieveResponse("respond_test")) ==
            "ActionRetrieveResponse('respond_test')")
Exemple #2
0
def test_text_format():
    assert "{}".format(ActionListen()) == "Action('action_listen')"
    assert ("{}".format(ActionUtterTemplate("my_action_name")) ==
            "ActionUtterTemplate('my_action_name')")