aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hazmat')
-rw-r--r--tests/hazmat/backends/test_openssl.py4
-rw-r--r--tests/hazmat/bindings/test_openssl.py2
2 files changed, 2 insertions, 4 deletions
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):