예제 #1
0
 def testBitReadBaseResponseHelperMethods(self):
     ''' Test the extra methods on a ReadBitsResponseBase '''
     input  = [False] * 8
     handle = ReadBitsResponseBase(input)
     for i in [1,3,5]: handle.setBit(i, True)
     for i in [1,3,5]: handle.resetBit(i)
     for i in range(8):
         self.assertEqual(handle.getBit(i), False)
예제 #2
0
 def testBitReadBaseResponseHelperMethods(self):
     ''' Test the extra methods on a ReadBitsResponseBase '''
     input  = [False] * 8
     handle = ReadBitsResponseBase(input)
     for i in [1,3,5]: handle.setBit(i, True)
     for i in [1,3,5]: handle.resetBit(i)
     for i in range(8):
         self.assertEqual(handle.getBit(i), False)