cc: add encrypt/decrypt test

This commit is contained in:
Mike Salvatore 2021-02-25 06:51:03 -05:00
parent fdeec3a634
commit 45367bb051
1 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,12 @@ def test_aes_cbc_decryption():
assert get_encryptor().dec(CYPHERTEXT) == PLAINTEXT
def test_aes_cbc_enc_dec():
initialize_encryptor(TEST_DATA_DIR)
assert get_encryptor().dec(get_encryptor().enc(PLAINTEXT)) == PLAINTEXT
def test_create_new_password_file(tmpdir):
initialize_encryptor(tmpdir)