Replace a real OTP secret in a test with a dummy vector
This commit is contained in:
@@ -73,7 +73,7 @@ class TestSecret(unittest.TestCase):
|
||||
self.assertEqual(decode_secret("ge zd gn bv"), decode_secret("GEZDGNBV"))
|
||||
|
||||
def test_pad_short_key_to_14_zero_filled(self):
|
||||
raw = decode_secret("JBSWY3DPEHPK3PXP") # 16 chars -> 10 bytes
|
||||
raw = decode_secret("JBSWY3DPEHPK3PXP") # dummy: 16 chars -> 10 bytes
|
||||
self.assertEqual(len(raw), 10)
|
||||
padded = pad_key(raw)
|
||||
self.assertEqual(len(padded), 14)
|
||||
|
||||
Reference in New Issue
Block a user