Beispiel #1
0
 def test_attach_response(self):
     output = ActionUtility.attach_response("I want $${RESPONSE}",
                                            {"dollars": "51"})
     assert output == 'I want ${\'dollars\': \'51\'}'
Beispiel #2
0
 def test_attach_response_int(self):
     output = ActionUtility.attach_response("I want $${RESPONSE}", 51)
     assert output == 'I want $51'
Beispiel #3
0
 def test_attach_response_no_placeholder(self):
     output = ActionUtility.attach_response("This has no placeholder",
                                            {"a": "b"})
     assert output == "This has no placeholder"