def testHashInequal(self): a = DoubleObject(42) b = DoubleObject(5) self.assertNotEqual(a.hash(), b.hash())
def testHashEqual(self): a = DoubleObject(42) b = DoubleObject(42) self.assertEqual(a.hash(), b.hash())