MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_serialize

Method test_serialize

test/base/test_utils.py:568–575  ·  test/base/test_utils.py::ImmutableDictTest.test_serialize
(self)

Source from the content-addressed store, hash-verified

566 is_(d.copy(), d)
567
568 def test_serialize(self):
569 d = util.immutabledict({1: 2, 3: 4})
570 for loads, dumps in picklers():
571 d2 = loads(dumps(d))
572
573 eq_(d2, {1: 2, 3: 4})
574
575 assert isinstance(d2, util.immutabledict)
576
577 def test_repr(self):
578 class="cm"># this is used by the stub generator in alembic

Callers

nothing calls this directly

Calls 4

picklersFunction · 0.90
eq_Function · 0.90
loadsFunction · 0.85
dumpsFunction · 0.85

Tested by

no test coverage detected