MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / assert_eq

Method assert_eq

test/base/test_utils.py:1691–1694  ·  view source on GitHub ↗
(self, identityset, expected_iterable)

Source from the content-addressed store, hash-verified

1689 obj_type = object
1690
1691 def assert_eq(self, identityset, expected_iterable):
1692 expected = sorted([id(o) for o in expected_iterable])
1693 found = sorted([id(o) for o in identityset])
1694 eq_(found, expected)
1695
1696 def test_init(self):
1697 ids = util.IdentitySet([1, 2, 3, 2, 1])

Callers 2

test_initMethod · 0.95
test_addMethod · 0.95

Calls 1

eq_Function · 0.90

Tested by

no test coverage detected