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

Method test_empty_dict

simplejson/tests/test_dump.py:358–360  ·  view source on GitHub ↗

Empty dict takes the early-return path.

(self)

Source from the content-addressed store, hash-verified

356 self.assertEqual(result, '{"also_ok": 2, "ok": 1}')
357
358 def test_empty_dict(self):
359 """Empty dict takes the early-return path."""
360 self.assertEqual(json.dumps({}), '{}')
361
362 def test_single_key(self):
363 """Single-key dict."""

Callers

nothing calls this directly

Calls 1

dumpsMethod · 0.80

Tested by

no test coverage detected