MCPcopy Index your code
hub / github.com/python/cpython / test_fixed_hash

Method test_fixed_hash

Lib/test/test_hash.py:277–281  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

275
276 @skip_unless_internalhash
277 def test_fixed_hash(self):
278 # test a fixed seed for the randomized hash
279 # Note that all types share the same values:
280 h = self.get_expected_hash(1, 3)
281 self.assertEqual(self.get_hash(self.repr_, seed=42), h)
282
283 @skip_unless_internalhash
284 def test_long_fixed_hash(self):

Callers

nothing calls this directly

Calls 3

get_expected_hashMethod · 0.95
get_hashMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected