def test_Long(self): value = TestUtility.getRandomLong() pv = PvObject({'v': LONG}, {'v': value}) assert (pv['v'] == value) value = TestUtility.getRandomLong() pv['v'] = value assert (pv['v'] == value) value = TestUtility.getRandomLong() pv.setLong(value) assert (pv.getLong() == value)
def testPutLong_Long(self): value = TestUtility.getRandomLong() c = TestUtility.getLongChannel() c.putLong(value) value2 = c.get().getPyObject() assert (value == value2)
def testPutLong_Long(self): value = TestUtility.getRandomLong() c = TestUtility.getLongChannel() c.putLong(value) value2 = c.get().getPyObject() assert(value == value2)