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

Method test_init

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

Source from the content-addressed store, hash-verified

1599 eq_(found, expected)
1600
1601 def test_init(self):
1602 ids = util.IdentitySet([1, 2, 3, 2, 1])
1603 self.assert_eq(ids, [1, 2, 3])
1604
1605 ids = util.IdentitySet(ids)
1606 self.assert_eq(ids, [1, 2, 3])
1607
1608 ids = util.IdentitySet()
1609 self.assert_eq(ids, [])
1610
1611 ids = util.IdentitySet([])
1612 self.assert_eq(ids, [])
1613
1614 ids = util.IdentitySet(ids)
1615 self.assert_eq(ids, [])
1616
1617 def test_add(self):
1618 for type_ in (object, ImmutableSubclass):

Callers

nothing calls this directly

Calls 1

assert_eqMethod · 0.95

Tested by

no test coverage detected