try to find the problem
This commit is contained in:
@ -181,8 +181,8 @@ def test_encryptor():
|
|||||||
for method in CIPHERS_TO_TEST:
|
for method in CIPHERS_TO_TEST:
|
||||||
logging.warn(method)
|
logging.warn(method)
|
||||||
encryptor = Encryptor(b'key', method)
|
encryptor = Encryptor(b'key', method)
|
||||||
cipher = encryptor.encrypt(plain)
|
|
||||||
decryptor = Encryptor(b'key', method)
|
decryptor = Encryptor(b'key', method)
|
||||||
|
cipher = encryptor.encrypt(plain)
|
||||||
plain2 = decryptor.decrypt(cipher)
|
plain2 = decryptor.decrypt(cipher)
|
||||||
assert plain == plain2
|
assert plain == plain2
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user