Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 def testPutShort_Short(self):
     value = TestUtility.getRandomShort()
     c = TestUtility.getShortChannel()
     c.putShort(value)
     value2 = c.get().getPyObject()
     assert (value == value2)
Exemplo n.º 3
0
 def testPutShort_Short(self):
     value = TestUtility.getRandomShort()
     c = TestUtility.getShortChannel()
     c.putShort(value)
     value2 = c.get().getPyObject()
     assert(value == value2)