|
|
|
@ -28,9 +28,9 @@ class TestOneTimePad(unittest.TestCase):
|
|
|
|
|
elif OT._is_txtline(lineno):
|
|
|
|
|
self.assertFalse(bool(len(line)),
|
|
|
|
|
'text line {0} is empty'.format(lineno))
|
|
|
|
|
elif OT._is_cypherline(lineno):
|
|
|
|
|
elif OT._is_cipherline(lineno):
|
|
|
|
|
self.assertFalse(bool(len(line)),
|
|
|
|
|
'cypher line {0} is empty'.format(lineno))
|
|
|
|
|
'cipher line {0} is empty'.format(lineno))
|
|
|
|
|
else:
|
|
|
|
|
raise NotImplementedError(lineno)
|
|
|
|
|
|
|
|
|
@ -41,7 +41,7 @@ class TestOneTimePad(unittest.TestCase):
|
|
|
|
|
self.assertTrue(bool(filled))
|
|
|
|
|
for lineno, line in enumerate(filled):
|
|
|
|
|
line = line.strip()
|
|
|
|
|
if OT._is_cypherline(lineno):
|
|
|
|
|
if OT._is_cipherline(lineno):
|
|
|
|
|
self.assertFalse(bool(len(line)),
|
|
|
|
|
'line {0} is empty'.format(lineno))
|
|
|
|
|
elif OT._is_txtline(lineno):
|
|
|
|
|