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

Method test_single_key

simplejson/tests/test_dump.py:362–364  ·  view source on GitHub ↗

Single-key dict.

(self)

Source from the content-addressed store, hash-verified

360 self.assertEqual(json.dumps({}), '{}')
361
362 def test_single_key(self):
363 """Single-key dict."""
364 self.assertEqual(json.dumps({"x": 1}), '{"x": 1}')
365
366 def test_nested_dicts(self):
367 """Nested dicts exercise recursive encoding within the dict loop."""

Callers

nothing calls this directly

Calls 1

dumpsMethod · 0.80

Tested by

no test coverage detected