Exemplo n.º 1
0
 def testPut_ULong(self):
     print()
     # put(ulong) will be mapped to put(long) in python,
     # resulting in overflow errors;
     # simply use positive long for this test
     value = TestUtility.getRandomPositiveLong()
     c = TestUtility.getULongChannel()
     print('Test value: %d' % (value))
     c.put(value)
     value2 = c.get().getPyObject()
     print('Testing equality: %d == %d' % (value2, value))
     assert (value == value2)