blob: 67866929e71dfc535bd641fae713e7eb85107d00 [file] [log] [blame]
# This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
from __future__ import absolute_import, division, print_function
from cryptography.hazmat.backends import _get_backend, default_backend
def test_get_backend_no_backend():
assert _get_backend(None) is default_backend()
def test_get_backend():
faux_backend = object()
assert _get_backend(faux_backend) is faux_backend