MCPcopy Index your code
hub / github.com/python/cpython / test_escape_all

Method test_escape_all

Lib/test/test_sax.py:306–308  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

304 self.assertEqual(escape("Donald Duck & Co"), "Donald Duck & Co")
305
306 def test_escape_all(self):
307 self.assertEqual(escape("<Donald Duck & Co>"),
308 "&lt;Donald Duck &amp; Co&gt;")
309
310 def test_escape_extra(self):
311 self.assertEqual(escape("Hei på deg", {"å" : "&aring;"}),

Callers

nothing calls this directly

Calls 2

escapeFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected