From b51d246eb6ccaed7920ba6dd6a816f74d1158c16 Mon Sep 17 00:00:00 2001 From: Glyph Date: Fri, 26 Jun 2015 22:08:44 -0700 Subject: remove remaining vestiges, make adding twice work --- tests/hazmat/backends/test_openssl.py | 4 +--- tests/hazmat/bindings/test_openssl.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index 8846491a..b24f03a8 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -259,9 +259,7 @@ class TestOpenSSLRandomEngine(object): stdout=out ) - osrandom_engine_name = backend._ffi.string( - backend._lib.Cryptography_osrandom_engine_name - ) + osrandom_engine_name = backend._binding._osrandom_engine_name assert engine_name.read().encode('ascii') == osrandom_engine_name diff --git a/tests/hazmat/bindings/test_openssl.py b/tests/hazmat/bindings/test_openssl.py index e6d6fc45..fe78b0ba 100644 --- a/tests/hazmat/bindings/test_openssl.py +++ b/tests/hazmat/bindings/test_openssl.py @@ -89,7 +89,7 @@ class TestOpenSSL(object): def test_add_engine_more_than_once(self): b = Binding() - res = b.lib.Cryptography_add_osrandom_engine() + res = b._register_osrandom_engine() assert res == 2 def test_ssl_ctx_options(self): -- cgit v1.2.3