aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-11-23 08:16:22 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2013-11-23 08:16:22 -0800
commitbe91a92cddf6fc54bc6069b2299a650a2edad104 (patch)
tree7e00c0b93685ed510668595611583b8d8f1073df /tests
parent3417656d6e35bd5c6e4687bb7d008be6d8c73b43 (diff)
parent90501724c5b3d73fea5a4242fa09c32277c6c210 (diff)
downloadcryptography-be91a92cddf6fc54bc6069b2299a650a2edad104.tar.gz
cryptography-be91a92cddf6fc54bc6069b2299a650a2edad104.tar.bz2
cryptography-be91a92cddf6fc54bc6069b2299a650a2edad104.zip
Merge branch 'master' into fernet
Diffstat (limited to 'tests')
-rw-r--r--tests/hazmat/bindings/test_openssl.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/hazmat/bindings/test_openssl.py b/tests/hazmat/bindings/test_openssl.py
index 7ad1ea75..0ebf38af 100644
--- a/tests/hazmat/bindings/test_openssl.py
+++ b/tests/hazmat/bindings/test_openssl.py
@@ -74,3 +74,20 @@ class TestOpenSSL(object):
def test_handle_unknown_error(self):
with pytest.raises(SystemError):
backend._handle_error_code(0, 0, 0)
+
+ with pytest.raises(SystemError):
+ backend._handle_error_code(backend.lib.ERR_LIB_EVP, 0, 0)
+
+ with pytest.raises(SystemError):
+ backend._handle_error_code(
+ backend.lib.ERR_LIB_EVP,
+ backend.lib.EVP_F_EVP_ENCRYPTFINAL_EX,
+ 0
+ )
+
+ with pytest.raises(SystemError):
+ backend._handle_error_code(
+ backend.lib.ERR_LIB_EVP,
+ backend.lib.EVP_F_EVP_DECRYPTFINAL_EX,
+ 0
+ )