Пример #1
0
 def testHashInequal(self):
     a = DoubleObject(42)
     b = DoubleObject(5)
     self.assertNotEqual(a.hash(), b.hash())
Пример #2
0
 def testHashInequal(self):
     a = DoubleObject(42)
     b = DoubleObject(5)
     self.assertNotEqual(a.hash(), b.hash())
Пример #3
0
 def testHashEqual(self):
     a = DoubleObject(42)
     b = DoubleObject(42)
     self.assertEqual(a.hash(), b.hash())
Пример #4
0
 def testHashEqual(self):
     a = DoubleObject(42)
     b = DoubleObject(42)
     self.assertEqual(a.hash(), b.hash())