Total Complexity | 1 |
Total Lines | 13 |
Duplicated Lines | 0 % |
1 | from plugin.core.libraries.tests.core.base import TestBase |
||
4 | class Cryptography(TestBase): |
||
5 | name = 'cryptography' |
||
6 | optional = True |
||
7 | |||
8 | @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 |