MCPcopy Create free account
hub / github.com/piccolo-orm/piccolo / test_dump_load

Method test_dump_load

tests/utils/test_encoding.py:7–12  ·  view source on GitHub ↗

Test dumping then loading an object.

(self)

Source from the content-addressed store, hash-verified

5
6class TestEncodingDecoding(TestCase):
7 def test_dump_load(self):
8 """
9 Test dumping then loading an object.
10 """
11 payload = {"a": [1, 2, 3]}
12 self.assertEqual(load_json(dump_json(payload)), payload)

Callers

nothing calls this directly

Calls 3

load_jsonFunction · 0.90
dump_jsonFunction · 0.90
assertEqualMethod · 0.80

Tested by

no test coverage detected