summaryrefslogtreecommitdiffstats
path: root/tests/crypto_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/crypto_test.py')
-rw-r--r--tests/crypto_test.py6
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)