def testTransfer(self): holder = HandleHolder() holder2 = HandleHolder(holder.handle()) self.assertTrue(holder.compare(holder2))
def testUseDefinedType(self): holder = HandleHolder(8) holder2 = HandleHolder(holder.handle2()) self.assertTrue(holder.compare2(holder2))
def testCreation(self): holder = HandleHolder(HandleHolder.createHandle()) holder2 = HandleHolder(HandleHolder.createHandle()) self.assertEqual(holder.compare(holder2), False)