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