(self)
| 1706 | self._assert_unorderable_types(should_raise) |
| 1707 | |
| 1708 | def test_dunder_ge(self): |
| 1709 | super_, sub_, twin1, twin2, unique1, unique2 = self._create_sets() |
| 1710 | |
| 1711 | # basic set math |
| 1712 | eq_(sub_ >= super_, False) |
| 1713 | eq_(super_ >= sub_, True) |
| 1714 | |
| 1715 | # the same sets |
| 1716 | eq_(twin1 >= twin2, True) |
| 1717 | eq_(twin2 >= twin1, True) |
| 1718 | |
| 1719 | # totally different sets |
| 1720 | eq_(unique1 >= unique2, False) |
| 1721 | eq_(unique2 >= unique1, False) |
| 1722 | |
| 1723 | # not an IdentitySet |
| 1724 | def should_raise(): |
| 1725 | not_an_identity_set = object() |
| 1726 | return unique1 >= not_an_identity_set |
| 1727 | |
| 1728 | self._assert_unorderable_types(should_raise) |
| 1729 | |
| 1730 | def test_dunder_gt(self): |
| 1731 | super_, sub_, twin1, twin2, unique1, unique2 = self._create_sets() |
nothing calls this directly
no test coverage detected