aboutsummaryrefslogtreecommitdiffstats
path: root/tests/otherbinding/objtypehashes_test.py
blob: 37ae9b85ca953d00cd1bd7b0f03cc9f343084d8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import unittest
from sample import *
from other import *

class TestHashFuncs (unittest.TestCase):

    def testIt(self):
        obj1 = HandleHolder()
        obj2 = HandleHolder()

        hash1 = hash(obj1)
        hash2 = hash(obj2)
        self.assertNotEqual(hash1, hash2)
        self.assertNotEqual(hash(HandleHolder()), hash(HandleHolder()))

if __name__ == '__main__':
    unittest.main()