当前位置: 首页>>代码示例>>Python>>正文


Python testUtility.TestUtility类代码示例

本文整理汇总了Python中testUtility.TestUtility的典型用法代码示例。如果您正苦于以下问题:Python TestUtility类的具体用法?Python TestUtility怎么用?Python TestUtility使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了TestUtility类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: testPutUByte_UByte

 def testPutUByte_UByte(self):
     value = TestUtility.getRandomUByte()
     c = TestUtility.getUByteChannel()
     c.putUByte(value)
     value2 = c.get().getPyObject()
     assert(value == value2)
开发者ID:pheest,项目名称:pvaPy,代码行数:6,代码来源:testChannelPut.py

示例2: testPut_PvByte

 def testPut_PvByte(self):
     value = chr(TestUtility.getRandomUByte())
     c = TestUtility.getByteChannel()
     c.put(PvByte(value))
     value2 = c.get().getPyObject()
     assert(value == value2)
开发者ID:pheest,项目名称:pvaPy,代码行数:6,代码来源:testChannelPut.py

示例3: testPut_Byte

 def testPut_Byte(self):
     value = TestUtility.getRandomByte()
     c = TestUtility.getByteChannel()
     c.put(value)
     value2 = c.get().getPyObject() # Same as: value2 = c.get().getByte()
     TestUtility.assertCharEquality(value,value2)
开发者ID:pheest,项目名称:pvaPy,代码行数:6,代码来源:testChannelPut.py

示例4: testPutString_String

 def testPutString_String(self):
     value = TestUtility.getRandomString()
     c = TestUtility.getStringChannel()
     c.putString(value)
     value2 = c.get().getPyObject()
     assert(value == value2)
开发者ID:pheest,项目名称:pvaPy,代码行数:6,代码来源:testChannelPut.py

示例5: testPutBoolean_Boolean

 def testPutBoolean_Boolean(self):
     value = TestUtility.getRandomBoolean()
     c = TestUtility.getBooleanChannel()
     c.putBoolean(value)
     value2 = c.get().getPyObject()
     assert(value == value2)
开发者ID:pheest,项目名称:pvaPy,代码行数:6,代码来源:testChannelPut.py

示例6: testPutDouble_Double

 def testPutDouble_Double(self):
     value = TestUtility.getRandomDouble()
     c = TestUtility.getDoubleChannel()
     c.putDouble(value)
     value2 = c.get().getPyObject()
     TestUtility.assertDoubleEquality(value, value2)
开发者ID:pheest,项目名称:pvaPy,代码行数:6,代码来源:testChannelPut.py

示例7: testPut_Boolean

 def testPut_Boolean(self):
     value = TestUtility.getRandomBooleanString()
     c = TestUtility.getBooleanChannel()
     c.put(value)
     value2 = c.get().getPyObject()
     TestUtility.assertBooleanEquality(value,value2)
开发者ID:pheest,项目名称:pvaPy,代码行数:6,代码来源:testChannelPut.py

示例8: testPut_ULong

 def testPut_ULong(self):
     value = TestUtility.getRandomULong()
     c = TestUtility.getULongChannel()
     c.put(value)
     value2 = c.get().getPyObject() 
     assert(value == value2)
开发者ID:pheest,项目名称:pvaPy,代码行数:6,代码来源:testChannelPut.py

示例9: testPutFloat_Float

 def testPutFloat_Float(self):
     value = TestUtility.getRandomFloat()
     c = TestUtility.getFloatChannel()
     c.putFloat(value)
     value2 = c.get().getPyObject()
     TestUtility.assertFloatEquality(value, value2)
开发者ID:pheest,项目名称:pvaPy,代码行数:6,代码来源:testChannelPut.py

示例10: testPutInt_UInt

 def testPutInt_UInt(self):
     value = TestUtility.getRandomUInt()
     c = TestUtility.getUIntChannel()
     c.putInt(value)
     value2 = c.get().getPyObject()
     assert(value == value2)
开发者ID:pheest,项目名称:pvaPy,代码行数:6,代码来源:testChannelPut.py

示例11: testPut_PvUShort

 def testPut_PvUShort(self):
     value = TestUtility.getRandomUShort()
     c = TestUtility.getUShortChannel()
     c.put(PvUShort(value))
     value2 = c.get().getPyObject()
     assert(value == value2)
开发者ID:pheest,项目名称:pvaPy,代码行数:6,代码来源:testChannelPut.py

示例12: testPutShort_Short

 def testPutShort_Short(self):
     value = TestUtility.getRandomShort()
     c = TestUtility.getShortChannel()
     c.putShort(value)
     value2 = c.get().getPyObject()
     assert(value == value2)
开发者ID:pheest,项目名称:pvaPy,代码行数:6,代码来源:testChannelPut.py

示例13: testPutGetLong_Long

 def testPutGetLong_Long(self):
     value = TestUtility.getRandomLong()
     c = TestUtility.getLongChannel()
     value2 = c.putGetLong(value).getPyObject()
     assert(value == value2)
开发者ID:pheest,项目名称:pvaPy,代码行数:5,代码来源:testChannelPutGet.py

示例14: testPutGetInt_Int

 def testPutGetInt_Int(self):
     value = TestUtility.getRandomInt()
     c = TestUtility.getIntChannel()
     value2 = c.putGetInt(value).getPyObject()
     assert(value == value2)
开发者ID:pheest,项目名称:pvaPy,代码行数:5,代码来源:testChannelPutGet.py


注:本文中的testUtility.TestUtility类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。