MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_serialize

Method test_serialize

test/base/test_utils.py:472–479  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

470 eq_(d3, d4)
471
472 def test_serialize(self):
473 d = util.immutabledict({1: 2, 3: 4})
474 for loads, dumps in picklers():
475 d2 = loads(dumps(d))
476
477 eq_(d2, {1: 2, 3: 4})
478
479 assert isinstance(d2, util.immutabledict)
480
481 def test_repr(self):
482 # 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