summaryrefslogtreecommitdiff
path: root/tests/openssl_test.py
blob: a4498dc4589376c39462bc264cc2142f5f6e5c77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import tests


def test_import():
    # https://github.com/eventlet/eventlet/issues/238
    # Ensure that it's possible to import eventlet.green.OpenSSL.
    # Most basic test to check Python 3 compatibility.
    try:
        import OpenSSL
    except ImportError:
        raise tests.SkipTest('need pyopenssl')

    import eventlet.green.OpenSSL.SSL
    import eventlet.green.OpenSSL.crypto
    import eventlet.green.OpenSSL.rand
    import eventlet.green.OpenSSL.tsafe
    import eventlet.green.OpenSSL.version