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

Method test_pickle

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

Source from the content-addressed store, hash-verified

3356
3357class TestProperties(fixtures.TestBase):
3358 def test_pickle(self):
3359 data = {"hello": "bla"}
3360 props = util.Properties(data)
3361
3362 for loader, dumper in picklers():
3363 s = dumper(props)
3364 p = loader(s)
3365
3366 eq_(props._data, p._data)
3367 eq_(props.keys(), p.keys())
3368
3369 def test_keys_in_dir(self):
3370 data = {"hello": "bla"}

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected