diff options
author | Victor Shyba <victor1984@riseup.net> | 2017-02-16 17:18:06 -0300 |
---|---|---|
committer | Victor Shyba <victor1984@riseup.net> | 2017-02-16 17:32:30 -0300 |
commit | ac6d87e83f91ed61b160e7cdd968f4a6f3d68f34 (patch) | |
tree | c58ac408e71cdca560132f32b3e77c43a4007324 /testing/tests/client | |
parent | d2ef605af73a592ea21c5bae005f53f483e310a6 (diff) |
[style] add deprecation warning on legacy decoder
Diffstat (limited to 'testing/tests/client')
-rw-r--r-- | testing/tests/client/test_crypto.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/testing/tests/client/test_crypto.py b/testing/tests/client/test_crypto.py index 2d4d827b..399fdc99 100644 --- a/testing/tests/client/test_crypto.py +++ b/testing/tests/client/test_crypto.py @@ -292,6 +292,9 @@ class PreambleTestCase(unittest.TestCase): self.doc_info, BytesIO(ciphertext), secret='A' * 96).decrypt() assert cleartext == self.cleartext.getvalue() + warnings = self.flushWarnings() + assert len(warnings) == 1 + assert 'legacy document without size' in warnings[0]['message'] def _aes_encrypt(key, iv, data, aead=''): |