Esempio n. 1
0
 def testPutByte_Byte(self):
     value = chr(TestUtility.getRandomUByte())
     c = TestUtility.getByteChannel()
     c.putByte(value)
     value2 = c.get().getPyObject()
     assert (value == value2)
Esempio n. 2
0
 def testPutByte_Byte(self):
     value = chr(TestUtility.getRandomUByte())
     c = TestUtility.getByteChannel()
     c.putByte(value)
     value2 = c.get().getPyObject()
     assert(value == value2)
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)