MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_dunder_ge

Method test_dunder_ge

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

Source from the content-addressed store, hash-verified

1801 self._assert_unorderable_types(should_raise)
1802
1803 def test_dunder_ge(self):
1804 super_, sub_, twin1, twin2, unique1, unique2 = self._create_sets()
1805
1806 # basic set math
1807 eq_(sub_ >= super_, False)
1808 eq_(super_ >= sub_, True)
1809
1810 # the same sets
1811 eq_(twin1 >= twin2, True)
1812 eq_(twin2 >= twin1, True)
1813
1814 # totally different sets
1815 eq_(unique1 >= unique2, False)
1816 eq_(unique2 >= unique1, False)
1817
1818 # not an IdentitySet
1819 def should_raise():
1820 not_an_identity_set = object()
1821 return unique1 >= not_an_identity_set
1822
1823 self._assert_unorderable_types(should_raise)
1824
1825 def test_dunder_gt(self):
1826 super_, sub_, twin1, twin2, unique1, unique2 = self._create_sets()

Callers

nothing calls this directly

Calls 3

_create_setsMethod · 0.95
eq_Function · 0.90

Tested by

no test coverage detected