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

Method test_randomized_hash

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

Source from the content-addressed store, hash-verified

189 return int(stdout)
190
191 def test_randomized_hash(self):
192 # two runs should return different hashes
193 run1 = self.get_hash(self.repr_, seed='random')
194 run2 = self.get_hash(self.repr_, seed='random')
195 self.assertNotEqual(run1, run2)
196
197class StringlikeHashRandomizationTests(HashRandomizationTests):
198 repr_ = None

Callers

nothing calls this directly

Calls 2

get_hashMethod · 0.95
assertNotEqualMethod · 0.80

Tested by

no test coverage detected