MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_dunder_ne

Method test_dunder_ne

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

Source from the content-addressed store, hash-verified

1746 eq_(unique1 == not_an_identity_set, False)
1747
1748 def test_dunder_ne(self):
1749 _, _, twin1, twin2, unique1, unique2 = self._create_sets()
1750
1751 # basic set math
1752 eq_(twin1 != twin2, False)
1753 eq_(unique1 != unique2, True)
1754
1755 # not an IdentitySet
1756 not_an_identity_set = object()
1757 eq_(unique1 != not_an_identity_set, True)
1758
1759 def test_dunder_le(self):
1760 super_, sub_, twin1, twin2, unique1, unique2 = self._create_sets()

Callers

nothing calls this directly

Calls 2

_create_setsMethod · 0.95
eq_Function · 0.90

Tested by

no test coverage detected