diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-23 07:54:36 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-23 07:54:36 -0800 |
commit | 87e113f2705b11fc395d7070d7ca8b89f2954631 (patch) | |
tree | c24d1f5cdcb132f1dbae1c40566ebb3a8d16370b /tests/hazmat/bindings | |
parent | 8cf523ead464e758d1aa22a7a8abbc2eae2c9404 (diff) | |
download | cryptography-87e113f2705b11fc395d7070d7ca8b89f2954631.tar.gz cryptography-87e113f2705b11fc395d7070d7ca8b89f2954631.tar.bz2 cryptography-87e113f2705b11fc395d7070d7ca8b89f2954631.zip |
Fixed branch coverage
Diffstat (limited to 'tests/hazmat/bindings')
-rw-r--r-- | tests/hazmat/bindings/test_openssl.py | 17 |
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 + ) |