def test_hashing(self): self.assertEqual(RT.hash(RT.symbol(u"foo")), RT.hash(RT.symbol(u"foo")))
def test_hashing_things(self): self.assertEqual(RT.hash(u"42"), RT.hash(u"42")) self.assertEqual(RT.hash(True), RT.hash(True)) self.assertEqual(RT.hash(None), RT.hash(None)) self.assertEqual(RT.hash(42.0), RT.hash(42.0))
def test_int_hashing(self): self.assertEqual(RT.hash(42), RT.hash(42))