def test_get_hash_str(self):
        expected = sha512(b'foo')
        actual = _get_hash('foo')
        self.assertEqual(expected.hexdigest(), actual.hexdigest())
Test the simple prefix search function.
dataset/ETHPy150Open ntoll/p4p2p/test/dht/test_crypto.py/TestGetHashFunction.test_get_hash_str--crossover with--dataset/ETHPy150Open SpriteLink/NIPAP/tests/nipapbase.py/NipapTest.test_prefix_search_simple