MCPcopy Create free account
hub / github.com/StackStorm/st2 / test_unescape

Method test_unescape

st2client/tests/unit/test_util_strutil.py:27–31  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

25 # See https://mail.python.org/pipermail/python-list/2006-January/411909.html
26
27 def test_unescape(self):
28 in_str = 'Action execution result double escape \\"stuffs\\".\\r\\n'
29 expected = 'Action execution result double escape "stuffs".\r\n'
30 out_str = strutil.unescape(in_str)
31 self.assertEqual(out_str, expected)
32
33 def test_unicode_string(self):
34 in_str = "\u8c03\u7528CMS\u63a5\u53e3\u5220\u9664\u865a\u62df\u76ee\u5f55"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected