log method in encrypt unit test

This commit is contained in:
clowwindy 2014-12-11 22:43:46 +08:00
parent 1459282ae6
commit 3e503bf677

View file

@ -179,6 +179,7 @@ def test_encryptor():
from os import urandom
plain = urandom(10240)
for method in CIPHERS_TO_TEST:
logging.warn(method)
encryptor = Encryptor(b'key', method)
cipher = encryptor.encrypt(plain)
decryptor = Encryptor(b'key', method)
@ -190,6 +191,7 @@ def test_encrypt_all():
from os import urandom
plain = urandom(10240)
for method in CIPHERS_TO_TEST:
logging.warn(method)
cipher = encrypt_all(b'key', method, 1, plain)
plain2 = encrypt_all(b'key', method, 0, cipher)
assert plain == plain2