Пример #1
0
 def testPutULong_ULong(self):
     print()
     value = TestUtility.getRandomULong()
     c = TestUtility.getULongChannel()
     c.putULong(value)
     value2 = c.get().getPyObject()
     print('Testing equality: %d == %d' % (value2, value))
     assert (value == value2)
Пример #2
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)
Пример #3
0
 def testPutULong_ULong(self):
     value = TestUtility.getRandomULong()
     c = TestUtility.getULongChannel()
     c.putULong(value)
     value2 = c.get().getPyObject()
     assert(value == value2)