Ejemplo n.º 1
0
 def test_ULong(self):
     value = TestUtility.getRandomULong()
     pv = PvObject({'v': ULONG}, {'v': value})
     assert (pv['v'] == value)
     value = TestUtility.getRandomULong()
     pv['v'] = value
     assert (pv['v'] == value)
     value = TestUtility.getRandomULong()
     pv.setULong(value)
     assert (pv.getULong() == value)
Ejemplo n.º 2
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)
Ejemplo n.º 3
0
 def testPutULong_ULong(self):
     value = TestUtility.getRandomULong()
     c = TestUtility.getULongChannel()
     c.putULong(value)
     value2 = c.get().getPyObject()
     assert(value == value2)