aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bindings
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-09-10 10:01:50 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-09-10 19:47:50 -0500
commit29cfa6989bfbc9545c2b40e9e3b316e89c0c14ca (patch)
treef19c91871a8c51d78def5356814975fb9c52ae2e /tests/bindings
parent09980a55fe5a3e4f586425a11b20ba89e84d0452 (diff)
downloadcryptography-29cfa6989bfbc9545c2b40e9e3b316e89c0c14ca.tar.gz
cryptography-29cfa6989bfbc9545c2b40e9e3b316e89c0c14ca.tar.bz2
cryptography-29cfa6989bfbc9545c2b40e9e3b316e89c0c14ca.zip
add get_iv_or_nonce() methods to replace _get_iv() on api
Diffstat (limited to 'tests/bindings')
-rw-r--r--tests/bindings/test_openssl.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/bindings/test_openssl.py b/tests/bindings/test_openssl.py
index e4b73460..c5927b76 100644
--- a/tests/bindings/test_openssl.py
+++ b/tests/bindings/test_openssl.py
@@ -11,8 +11,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import pytest
-
from cryptography.bindings.openssl import api
@@ -31,6 +29,5 @@ class TestOpenSSL(object):
"""
assert api.openssl_version_text().startswith("OpenSSL")
- def test_get_iv_invalid_mode(self):
- with pytest.raises(NotImplementedError):
- api._get_iv(None)
+ def test_get_null_for_ecb(self):
+ assert api.get_null_for_ecb() == api._ffi.NULL