MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_copy

Method test_copy

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

Source from the content-addressed store, hash-verified

359 eq_(o3, {1, 2, 4, 7})
360
361 def test_copy(self):
362 o = util.OrderedSet([3, 2, 4, 5])
363 cp = o.copy()
364 is_instance_of(cp, util.OrderedSet)
365 eq_(o, cp)
366 o.add(42)
367 is_false(42 in cp)
368
369 def test_pickle(self):
370 o = util.OrderedSet([2, 4, 9, 42])

Callers

nothing calls this directly

Calls 5

copyMethod · 0.95
addMethod · 0.95
is_instance_ofFunction · 0.90
eq_Function · 0.90
is_falseFunction · 0.90

Tested by

no test coverage detected