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

Method test_pickle

test/base/test_utils.py:369–374  ·  test/base/test_utils.py::OrderedSetTest.test_pickle
(self)

Source from the content-addressed store, hash-verified

367 is_false(42 in cp)
368
369 def test_pickle(self):
370 o = util.OrderedSet([2, 4, 9, 42])
371 for loads, dumps in picklers():
372 l = loads(dumps(o))
373 is_instance_of(l, util.OrderedSet)
374 eq_(list(l), [2, 4, 9, 42])
375
376
377class ImmutableDictTest(fixtures.TestBase):

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected