tests/openssl_test.py
raw| 1 | import tests |
| 2 | |
| 3 | |
| 4 | def test_import(): |
| 5 | # https://github.com/eventlet/eventlet/issues/238 |
| 6 | # Ensure that it's possible to import eventlet.green.OpenSSL. |
| 7 | # Most basic test to check Python 3 compatibility. |
| 8 | try: |
| 9 | import OpenSSL |
| 10 | except ImportError: |
| 11 | raise tests.SkipTest('need pyopenssl') |
| 12 | |
| 13 | import eventlet.green.OpenSSL.SSL |
| 14 | import eventlet.green.OpenSSL.crypto |
| 15 | import eventlet.green.OpenSSL.version |