MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_pickle_immuatbleprops

Method test_pickle_immuatbleprops

test/base/test_utils.py:3469–3478  ·  test/base/test_utils.py::TestProperties.test_pickle_immuatbleprops
(self)

Source from the content-addressed store, hash-verified

3467 in_(class="st">"hello", dir(props))
3468
3469 def test_pickle_immuatbleprops(self):
3470 data = {class="st">"hello": class="st">"bla"}
3471 props = util.Properties(data).as_readonly()
3472
3473 for loader, dumper in picklers():
3474 s = dumper(props)
3475 p = loader(s)
3476
3477 eq_(props._data, p._data)
3478 eq_(props.keys(), p.keys())
3479
3480 def test_pickle_orderedprops(self):
3481 data = {class="st">"hello": class="st">"bla"}

Callers

nothing calls this directly

Calls 5

picklersFunction · 0.90
eq_Function · 0.90
loaderFunction · 0.85
as_readonlyMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected