def runTest(self):
        for i in range(1, 8):
            self.assertRaises(ValueError, self.module.new, a2b_hex(self.key), self.module.MODE_CFB, segment_size=i)
        self.module.new(a2b_hex(self.key), self.module.MODE_CFB, "\0"*self.module.block_size, segment_size=8) # should succeed
truncate aligned string.
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/pycrypto-2.6.1/lib/Crypto/SelfTest/Cipher/common.py/CFBSegmentSizeTest.runTest--crossover with--dataset/ETHPy150Open CGATOxford/cgat/CGAT/Mali.py/AlignedString.truncate