

def test_get_hash_int(self):
    '\n        Ensure integer values are hashed correctly.\n        '
    expected = sha512(b'1234567890987654321234567890987654321')
    actual = _get_hash(1234567890987654321234567890987654321)
    self.assertEqual(expected.hexdigest(), actual.hexdigest())

dataset/ETHPy150Open ntoll/p4p2p/test/dht/test_crypto.py TestGetHashFunction.test_get_hash_int/original