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)