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

Method assert_eq

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

Source from the content-addressed store, hash-verified

1594 obj_type = object
1595
1596 def assert_eq(self, identityset, expected_iterable):
1597 expected = sorted([id(o) for o in expected_iterable])
1598 found = sorted([id(o) for o in identityset])
1599 eq_(found, expected)
1600
1601 def test_init(self):
1602 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