17 lines
514 B
Python
17 lines
514 B
Python
# 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
|