|
|
@ -38,10 +38,8 @@ class TestOneTimePad(unittest.TestCase):
|
|
|
|
msg = self.msg[:]
|
|
|
|
msg = self.msg[:]
|
|
|
|
pad = OT.create_pad(len(msg))
|
|
|
|
pad = OT.create_pad(len(msg))
|
|
|
|
filled = OT._padfill(msg, pad)
|
|
|
|
filled = OT._padfill(msg, pad)
|
|
|
|
# print filled
|
|
|
|
|
|
|
|
# raise Exception
|
|
|
|
|
|
|
|
self.assertTrue(bool(filled))
|
|
|
|
self.assertTrue(bool(filled))
|
|
|
|
for lineno, line in enumerate(filled.splitlines()):
|
|
|
|
for lineno, line in enumerate(filled):
|
|
|
|
line = line.strip()
|
|
|
|
line = line.strip()
|
|
|
|
if OT._is_cypherline(lineno):
|
|
|
|
if OT._is_cypherline(lineno):
|
|
|
|
self.assertFalse(bool(len(line)),
|
|
|
|
self.assertFalse(bool(len(line)),
|
|
|
|