MCPcopy Create free account
hub / github.com/EasyIME/PIME / test_re_unescape

Method test_re_unescape

python/python3/tornado/test/util_test.py:292–295  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

290
291class ReUnescapeTest(unittest.TestCase):
292 def test_re_unescape(self):
293 test_strings = ("/favicon.ico", "index.html", "Hello, World!", "!$@#%;")
294 for string in test_strings:
295 self.assertEqual(string, re_unescape(re.escape(string)))
296
297 def test_re_unescape_raises_error_on_invalid_input(self):
298 with self.assertRaises(ValueError):

Callers

nothing calls this directly

Calls 1

re_unescapeFunction · 0.90

Tested by

no test coverage detected