(self)
| 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): |