def test_ciphertext_filename():
    test_filename = 'test.txt.enc'
    fc = FileCrypt()
    filename, enc_filename = fc._set_filenames(test_filename)
    assert filename == u'test.txt'
    assert enc_filename == u'test.txt.enc'
Esempio n. 2
0
def test_ciphertext_filename():
    test_filename = 'test.txt.enc'
    fc = FileCrypt()
    filename, enc_filename = fc._set_filenames(test_filename)
    assert filename == u'test.txt'
    assert enc_filename == u'test.txt.enc'
def test_plaintext_filename():
    test_filename = 'test.txt'
    fc = FileCrypt()
    set_filename, set_enc_filename = fc._set_filenames(test_filename)
    assert set_filename == FILENAME
    assert set_enc_filename == FILENAME_ENC
Esempio n. 4
0
def test_plaintext_filename():
    test_filename = 'test.txt'
    fc = FileCrypt()
    set_filename, set_enc_filename = fc._set_filenames(test_filename)
    assert set_filename == FILENAME
    assert set_enc_filename == FILENAME_ENC