Ejemplo n.º 1
0
 def test_attach_response(self):
     output = ActionUtility.attach_response("I want $${RESPONSE}",
                                            {"dollars": "51"})
     assert output == 'I want ${\'dollars\': \'51\'}'
Ejemplo n.º 2
0
 def test_attach_response_int(self):
     output = ActionUtility.attach_response("I want $${RESPONSE}", 51)
     assert output == 'I want $51'
Ejemplo n.º 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"