Total Complexity | 1 |
Total Lines | 13 |
Duplicated Lines | 0 % |
Coverage | 57.14% |
Changes | 0 |
1 | 1 | from plugin.core.libraries.tests.core.base import BaseTest |
|
4 | 1 | class Cryptography(BaseTest): |
|
5 | 1 | name = 'cryptography' |
|
6 | 1 | optional = True |
|
7 | |||
8 | 1 | @staticmethod |
|
9 | def test_import(): |
||
10 | import cryptography |
||
11 | from cryptography.hazmat.bindings.openssl.binding import Binding |
||
12 | |||
13 | return { |
||
14 | 'versions': { |
||
15 | 'cryptography': getattr(cryptography, '__version__', None), |
||
16 | 'openssl': Binding.lib.SSLeay() |
||
17 | } |
||
19 |