aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/bindings/test_openssl.py
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2013-11-22 17:24:23 -0800
committerDonald Stufft <donald@stufft.io>2013-11-22 17:24:23 -0800
commit8cf523ead464e758d1aa22a7a8abbc2eae2c9404 (patch)
tree10e3c439ad53412d1bb2b42c69f7050f25d2cfd7 /tests/hazmat/bindings/test_openssl.py
parent838ad7d2f5bb97242a9f75ac9055be5be75a7711 (diff)
parentb7e8990aabb46ac6c0511530d7a67f69e08f1788 (diff)
downloadcryptography-8cf523ead464e758d1aa22a7a8abbc2eae2c9404.tar.gz
cryptography-8cf523ead464e758d1aa22a7a8abbc2eae2c9404.tar.bz2
cryptography-8cf523ead464e758d1aa22a7a8abbc2eae2c9404.zip
Merge pull request #274 from alex/handle-bad-padding
Raise a correct error when content isn't padded correctly
Diffstat (limited to 'tests/hazmat/bindings/test_openssl.py')
-rw-r--r--tests/hazmat/bindings/test_openssl.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/hazmat/bindings/test_openssl.py b/tests/hazmat/bindings/test_openssl.py
index 9f27aab7..7ad1ea75 100644
--- a/tests/hazmat/bindings/test_openssl.py
+++ b/tests/hazmat/bindings/test_openssl.py
@@ -70,3 +70,7 @@ class TestOpenSSL(object):
)
with pytest.raises(UnsupportedAlgorithm):
cipher.encryptor()
+
+ def test_handle_unknown_error(self):
+ with pytest.raises(SystemError):
+ backend._handle_error_code(0, 0, 0)