

def test_get_hash_list(self):
    '\n        Ensure all the items in a list are hashed in the correct order.\n        '
    to_hash = []
    for i in range(5):
        to_hash.append(str(uuid.uuid4()))
    seed_hashes = []
    for item in to_hash:
        seed_hashes.append(sha512(item.encode('utf-8')).hexdigest())
    seed = ''.join(seed_hashes)
    expected = sha512(seed.encode('utf-8'))
    actual = _get_hash(to_hash)
    self.assertEqual(expected.hexdigest(), to_hash.hexdigest())

dataset/ETHPy150Open ntoll/p4p2p/test/dht/test_crypto.py TestGetHashFunction.test_get_hash_list/VarMisuse@112/177 `actual`->`to_hash`