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)
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)
def testPutULong_ULong(self): value = TestUtility.getRandomULong() c = TestUtility.getULongChannel() c.putULong(value) value2 = c.get().getPyObject() assert(value == value2)