def test_UShort(self): value = TestUtility.getRandomUShort() pv = PvObject({'v': USHORT}, {'v': value}) assert (pv['v'] == value) value = TestUtility.getRandomUShort() pv['v'] = value assert (pv['v'] == value) value = TestUtility.getRandomUShort() pv.setUShort(value) assert (pv.getUShort() == value)
def testPutUShort_UShort(self): value = TestUtility.getRandomUShort() c = TestUtility.getUShortChannel() c.putUShort(value) value2 = c.get().getPyObject() assert (value == value2)
def testPutUShort_UShort(self): value = TestUtility.getRandomUShort() c = TestUtility.getUShortChannel() c.putUShort(value) value2 = c.get().getPyObject() assert(value == value2)