def test6BitIntExtractFromPos2Of8BitInt(self): testVal = 0xA5 result = DecodeFunctions.extractIntFromPosition(testVal, 6, 2) self.assertEqual(0x29, result)
def test4BitIntExtractFromPos1Of8BitInt(self): testVal = 0xA5 result = DecodeFunctions.extractIntFromPosition(testVal, 4, 1) self.assertEqual(0x2, result)