MCPcopy Index your code
hub / github.com/zzzeek/sqlalchemy / test_cache_key_object_comparators

Method test_cache_key_object_comparators

test/sql/test_compare.py:1346–1357  ·  view source on GitHub ↗

test ne issue detected as part of #10042

(self, lc1, lc2, lc3)

Source from the content-addressed store, hash-verified

1344 ),
1345 )
1346 def test_cache_key_object_comparators(self, lc1, lc2, lc3):
1347 """test ne issue detected as part of #10042"""
1348 c1 = lc1()
1349 c2 = lc2()
1350 c3 = lc3()
1351
1352 eq_(c1._generate_cache_key(), c2._generate_cache_key())
1353 ne_(c1._generate_cache_key(), c3._generate_cache_key())
1354 is_true(c1._generate_cache_key() == c2._generate_cache_key())
1355 is_false(c1._generate_cache_key() != c2._generate_cache_key())
1356 is_true(c1._generate_cache_key() != c3._generate_cache_key())
1357 is_false(c1._generate_cache_key() == c3._generate_cache_key())
1358
1359 def test_in_with_none(self):
1360 """test #12314"""

Callers

nothing calls this directly

Calls 5

eq_Function · 0.90
ne_Function · 0.90
is_trueFunction · 0.90
is_falseFunction · 0.90
_generate_cache_keyMethod · 0.45

Tested by

no test coverage detected