當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。