From 29cfa6989bfbc9545c2b40e9e3b316e89c0c14ca Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Tue, 10 Sep 2013 10:01:50 -0500 Subject: add get_iv_or_nonce() methods to replace _get_iv() on api --- tests/bindings/test_openssl.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'tests') 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 -- cgit v1.2.3