def test_Short(self): value = TestUtility.getRandomShort() pv = PvObject({'v': SHORT}, {'v': value}) assert (pv['v'] == value) value = TestUtility.getRandomShort() pv['v'] = value assert (pv['v'] == value) value = TestUtility.getRandomShort() pv.setShort(value) assert (pv.getShort() == value)
def testPutShort_Short(self): value = TestUtility.getRandomShort() c = TestUtility.getShortChannel() c.putShort(value) value2 = c.get().getPyObject() assert (value == value2)
def testPutShort_Short(self): value = TestUtility.getRandomShort() c = TestUtility.getShortChannel() c.putShort(value) value2 = c.get().getPyObject() assert(value == value2)