

def test_get_hash_none(self):
    "\n        Ensure the hash of Python's None is actually a hash of 'null' (since\n        this is the null value for JSON).\n        "
    expected = sha512(b'null')
    actual = _get_hash(None)
    self.assertEqual(expected.hexdigest(), actual.hexdigest())

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