(self)
| 1662 | eq_(unique1 != not_an_identity_set, True) |
| 1663 | |
| 1664 | def test_dunder_le(self): |
| 1665 | super_, sub_, twin1, twin2, unique1, unique2 = self._create_sets() |
| 1666 | |
| 1667 | # basic set math |
| 1668 | eq_(sub_ <= super_, True) |
| 1669 | eq_(super_ <= sub_, False) |
| 1670 | |
| 1671 | # the same sets |
| 1672 | eq_(twin1 <= twin2, True) |
| 1673 | eq_(twin2 <= twin1, True) |
| 1674 | |
| 1675 | # totally different sets |
| 1676 | eq_(unique1 <= unique2, False) |
| 1677 | eq_(unique2 <= unique1, False) |
| 1678 | |
| 1679 | # not an IdentitySet |
| 1680 | def should_raise(): |
| 1681 | not_an_identity_set = object() |
| 1682 | return unique1 <= not_an_identity_set |
| 1683 | |
| 1684 | self._assert_unorderable_types(should_raise) |
| 1685 | |
| 1686 | def test_dunder_lt(self): |
| 1687 | super_, sub_, twin1, twin2, unique1, unique2 = self._create_sets() |
nothing calls this directly
no test coverage detected