]> wagner.pp.ru Git - oss/ctypescrypto.git/commitdiff
Remove writing of cipher.txt
authorVictor Wagner <vitus@wagner.pp.ru>
Sat, 20 Dec 2014 12:56:52 +0000 (15:56 +0300)
committerVictor Wagner <vitus@wagner.pp.ru>
Sat, 20 Dec 2014 12:56:52 +0000 (15:56 +0300)
tests/testcipher.py

index 3cc848c0a963600841d271c59d0cd6916d924f3a..cb59802ee1f4c0b1e33b9c750735c4abed9ef7bb 100644 (file)
@@ -85,8 +85,6 @@ class TestEncryptDecrypt(unittest.TestCase):
                c=cipher.new("bf-ofb",encryptkey,iv=iv)
                ciphertext=c.update(data)+c.finish()
                decryptkey=encryptkey[0:5]+encryptkey[5:]
-               with open("cipher.txt","w") as f:
-                       f.write(repr(ciphertext)+"\n")
                d=cipher.new("bf-ofb",decryptkey,encrypt=False,iv=iv)
                deciph=d.update(ciphertext)+d.finish()
                self.assertEqual(deciph,data)