本文整理汇总了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)
示例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)
示例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)
示例4: testPutString_String
def testPutString_String(self):
value = TestUtility.getRandomString()
c = TestUtility.getStringChannel()
c.putString(value)
value2 = c.get().getPyObject()
assert(value == value2)
示例5: testPutBoolean_Boolean
def testPutBoolean_Boolean(self):
value = TestUtility.getRandomBoolean()
c = TestUtility.getBooleanChannel()
c.putBoolean(value)
value2 = c.get().getPyObject()
assert(value == value2)
示例6: testPutDouble_Double
def testPutDouble_Double(self):
value = TestUtility.getRandomDouble()
c = TestUtility.getDoubleChannel()
c.putDouble(value)
value2 = c.get().getPyObject()
TestUtility.assertDoubleEquality(value, value2)
示例7: testPut_Boolean
def testPut_Boolean(self):
value = TestUtility.getRandomBooleanString()
c = TestUtility.getBooleanChannel()
c.put(value)
value2 = c.get().getPyObject()
TestUtility.assertBooleanEquality(value,value2)
示例8: testPut_ULong
def testPut_ULong(self):
value = TestUtility.getRandomULong()
c = TestUtility.getULongChannel()
c.put(value)
value2 = c.get().getPyObject()
assert(value == value2)
示例9: testPutFloat_Float
def testPutFloat_Float(self):
value = TestUtility.getRandomFloat()
c = TestUtility.getFloatChannel()
c.putFloat(value)
value2 = c.get().getPyObject()
TestUtility.assertFloatEquality(value, value2)
示例10: testPutInt_UInt
def testPutInt_UInt(self):
value = TestUtility.getRandomUInt()
c = TestUtility.getUIntChannel()
c.putInt(value)
value2 = c.get().getPyObject()
assert(value == value2)
示例11: testPut_PvUShort
def testPut_PvUShort(self):
value = TestUtility.getRandomUShort()
c = TestUtility.getUShortChannel()
c.put(PvUShort(value))
value2 = c.get().getPyObject()
assert(value == value2)
示例12: testPutShort_Short
def testPutShort_Short(self):
value = TestUtility.getRandomShort()
c = TestUtility.getShortChannel()
c.putShort(value)
value2 = c.get().getPyObject()
assert(value == value2)
示例13: testPutGetLong_Long
def testPutGetLong_Long(self):
value = TestUtility.getRandomLong()
c = TestUtility.getLongChannel()
value2 = c.putGetLong(value).getPyObject()
assert(value == value2)
示例14: testPutGetInt_Int
def testPutGetInt_Int(self):
value = TestUtility.getRandomInt()
c = TestUtility.getIntChannel()
value2 = c.putGetInt(value).getPyObject()
assert(value == value2)