• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This file is dual licensed under the terms of the Apache License, Version
2# 2.0, and the BSD License. See the LICENSE file in the root of this repository
3# for complete details.
4
5from __future__ import absolute_import, division, print_function
6
7from cryptography.hazmat.backends import _get_backend, default_backend
8
9
10def test_get_backend_no_backend():
11    assert _get_backend(None) is default_backend()
12
13
14def test_get_backend():
15    faux_backend = object()
16    assert _get_backend(faux_backend) is faux_backend
17