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

Method test_init

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

Source from the content-addressed store, hash-verified

1694 eq_(found, expected)
1695
1696 def test_init(self):
1697 ids = util.IdentitySet([1, 2, 3, 2, 1])
1698 self.assert_eq(ids, [1, 2, 3])
1699
1700 ids = util.IdentitySet(ids)
1701 self.assert_eq(ids, [1, 2, 3])
1702
1703 ids = util.IdentitySet()
1704 self.assert_eq(ids, [])
1705
1706 ids = util.IdentitySet([])
1707 self.assert_eq(ids, [])
1708
1709 ids = util.IdentitySet(ids)
1710 self.assert_eq(ids, [])
1711
1712 def test_add(self):
1713 for type_ in (object, ImmutableSubclass):

Callers

nothing calls this directly

Calls 1

assert_eqMethod · 0.95

Tested by

no test coverage detected