diff options
author | Siddharth Ravikumar <sravik@bgsu.edu> | 2015-02-26 02:20:09 -0500 |
---|---|---|
committer | Siddharth Ravikumar <sravik@bgsu.edu> | 2015-02-26 02:20:09 -0500 |
commit | 694240de5d0c803b866c1b633ac5b521f32ee111 (patch) | |
tree | 945d8104ba1e45cda69fdb4ae8d13f4f61f5aa1d /tests/crypto_test.py | |
parent | 115df22474879c0c4cd418c5956247d3c5c721f9 (diff) |
updated tests.crypto_test.TestCrypto.test_convenience_crypto
Added code to test the new arg `write' in the decrypt_and_glue
function.
Diffstat (limited to 'tests/crypto_test.py')
-rw-r--r-- | tests/crypto_test.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/crypto_test.py b/tests/crypto_test.py index 8cff6f9..454255c 100644 --- a/tests/crypto_test.py +++ b/tests/crypto_test.py @@ -108,8 +108,12 @@ class TestCrypto(object): # reads encrypted shards from node directories, glues them and # writes decrypted back to combox directory. - decrypt_and_glue(self.TEST_FILE, self.config) + os.remove(self.TEST_FILE) + decrypt_and_glue(self.TEST_FILE, self.config, write=False) + assert not path.exists(self.TEST_FILE) + decrypt_and_glue(self.TEST_FILE, self.config) + assert path.exists(self.TEST_FILE) assert cmp(self.TEST_FILE, self.TEST_FILE_COPY, False) |