MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_pickle

Method test_pickle

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

Source from the content-addressed store, hash-verified

3451
3452class TestProperties(fixtures.TestBase):
3453 def test_pickle(self):
3454 data = {"hello": "bla"}
3455 props = util.Properties(data)
3456
3457 for loader, dumper in picklers():
3458 s = dumper(props)
3459 p = loader(s)
3460
3461 eq_(props._data, p._data)
3462 eq_(props.keys(), p.keys())
3463
3464 def test_keys_in_dir(self):
3465 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