MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_dunder_gt

Method test_dunder_gt

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

Source from the content-addressed store, hash-verified

1823 self._assert_unorderable_types(should_raise)
1824
1825 def test_dunder_gt(self):
1826 super_, sub_, twin1, twin2, unique1, unique2 = self._create_sets()
1827
1828 # basic set math
1829 eq_(sub_ > super_, False)
1830 eq_(super_ > sub_, True)
1831
1832 # the same sets
1833 eq_(twin1 > twin2, False)
1834 eq_(twin2 > twin1, False)
1835
1836 # totally different sets
1837 eq_(unique1 > unique2, False)
1838 eq_(unique2 > unique1, False)
1839
1840 # not an IdentitySet
1841 def should_raise():
1842 not_an_identity_set = object()
1843 return unique1 > not_an_identity_set
1844
1845 self._assert_unorderable_types(should_raise)
1846
1847 def test_issubset(self):
1848 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