MCPcopy Create free account
hub / github.com/simplejson/simplejson / setUp

Method setUp

simplejson/tests/test_encode_for_html.py:7–10  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5class TestEncodeForHTML(unittest.TestCase):
6
7 def setUp(self):
8 self.decoder = json.JSONDecoder()
9 self.encoder = json.JSONEncoderForHTML()
10 self.non_ascii_encoder = json.JSONEncoderForHTML(ensure_ascii=False)
11
12 def test_basic_encode(self):
13 self.assertEqual(r'"\u0026"', self.encoder.encode('&'))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected