MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_dunder_gt

Method test_dunder_gt

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

Source from the content-addressed store, hash-verified

1728 self._assert_unorderable_types(should_raise)
1729
1730 def test_dunder_gt(self):
1731 super_, sub_, twin1, twin2, unique1, unique2 = self._create_sets()
1732
1733 # basic set math
1734 eq_(sub_ > super_, False)
1735 eq_(super_ > sub_, True)
1736
1737 # the same sets
1738 eq_(twin1 > twin2, False)
1739 eq_(twin2 > twin1, False)
1740
1741 # totally different sets
1742 eq_(unique1 > unique2, False)
1743 eq_(unique2 > unique1, False)
1744
1745 # not an IdentitySet
1746 def should_raise():
1747 not_an_identity_set = object()
1748 return unique1 > not_an_identity_set
1749
1750 self._assert_unorderable_types(should_raise)
1751
1752 def test_issubset(self):
1753 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