summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testing/tests/client/test_crypto.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/testing/tests/client/test_crypto.py b/testing/tests/client/test_crypto.py
index bbbc4a43..5b647b73 100644
--- a/testing/tests/client/test_crypto.py
+++ b/testing/tests/client/test_crypto.py
@@ -119,9 +119,12 @@ class BlobTestCase(unittest.TestCase):
def test_unarmored_blob_encrypt(self):
self.blob.armor = False
encrypted = yield self.blob.encrypt()
- decode = base64.urlsafe_b64decode
- with pytest.raises(TypeError):
- assert map(decode, encrypted.getvalue().split())
+
+ decryptor = _crypto.BlobDecryptor(
+ self.doc_info, encrypted, armor=False,
+ secret='A' * 96)
+ decrypted = yield decryptor.decrypt()
+ assert decrypted.getvalue() == snowden1
@defer.inlineCallbacks
def test_default_armored_blob_encrypt(self):